2021-05-23 23:22:23 +03:00
---
2021-06-08 20:20:03 +03:00
external help file: SnipeitPS-help.xml
2021-10-27 14:11:27 +03:00
Module Name: SnipeitPS
2021-05-22 18:50:56 +03:00
online version:
schema: 2.0.0
---
# Set-SnipeitLocation
## SYNOPSIS
Updates Location in Snipe-it asset system
## SYNTAX
```
2021-06-06 06:22:08 +03:00
Set-SnipeitLocation [-id] < Int32 [ ] > [[-name] < String > ] [[-address] < String > ] [[-address2] < String > ]
2021-05-25 16:11:47 +03:00
[[-state] < String > ] [[-country] < String > ] [[-zip] < String > ] [[-city] < String > ] [[-currency] < String > ]
2021-07-08 23:59:31 +03:00
[[-manager_id] < Int32 > ] [[-ldap_ou] < String > ] [[-parent_id] < Int32 > ] [[-image] < String > ] [-image_delete]
2021-08-23 18:50:13 +03:00
[[-RequestType] < String > ] [[-url] < String > ] [[-apiKey] < String > ] [-WhatIf] [-Confirm] [< CommonParameters > ]
2021-05-22 18:50:56 +03:00
```
## DESCRIPTION
Long description
## EXAMPLES
### EXAMPLE 1
```
Set-SnipeitLocation -id 123 -name "Some storage" -parent_id 100
```
## PARAMETERS
2021-05-23 23:22:23 +03:00
### -address
Address line 1
2021-05-22 18:50:56 +03:00
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
2021-05-23 23:22:23 +03:00
Position: 3
2021-05-22 18:50:56 +03:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2021-05-23 23:22:23 +03:00
### -address2
Address line 2
2021-05-22 18:50:56 +03:00
```yaml
Type: String
Parameter Sets: (All)
Aliases:
2021-05-23 23:22:23 +03:00
Required: False
Position: 4
2021-05-22 18:50:56 +03:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2021-05-23 23:24:44 +03:00
### -apiKey
2021-08-23 18:50:13 +03:00
Deprecated parameter, please use Connect-SnipeitPS instead.
Users API Key for Snipeit.
2021-05-22 18:50:56 +03:00
```yaml
Type: String
Parameter Sets: (All)
Aliases:
2021-08-23 18:50:13 +03:00
Required: False
2021-07-14 11:16:55 +03:00
Position: 16
2021-05-25 16:11:47 +03:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -city
City of the location
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 8
2021-05-22 18:50:56 +03:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2021-05-23 23:22:23 +03:00
### -country
Address Contry
2021-05-22 18:50:56 +03:00
```yaml
2021-05-23 23:22:23 +03:00
Type: String
2021-05-22 18:50:56 +03:00
Parameter Sets: (All)
Aliases:
2021-05-23 23:22:23 +03:00
Required: False
Position: 6
Default value: None
2021-05-22 18:50:56 +03:00
Accept pipeline input: False
Accept wildcard characters: False
```
2021-05-25 16:11:47 +03:00
### -currency
Currency used at the location
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 9
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2021-05-23 23:24:44 +03:00
### -id
2021-06-08 22:04:25 +03:00
ID number of location or array or IDs
2021-05-23 23:24:44 +03:00
```yaml
2021-06-06 06:22:08 +03:00
Type: Int32[]
2021-05-23 23:24:44 +03:00
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
2021-06-08 22:04:25 +03:00
Default value: None
2021-06-06 06:22:08 +03:00
Accept pipeline input: True (ByPropertyName)
2021-05-23 23:24:44 +03:00
Accept wildcard characters: False
```
2021-07-08 23:59:31 +03:00
### -image
Image file name and path for item
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 13
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -image_delete
Remove current image
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
2021-05-23 23:24:44 +03:00
### -ldap_ou
LDAP OU of Location
2021-05-22 18:50:56 +03:00
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
2021-05-25 16:11:47 +03:00
Position: 11
2021-05-22 18:50:56 +03:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -manager_id
Location manager as id
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
2021-05-25 16:11:47 +03:00
Position: 10
2021-06-16 10:37:57 +03:00
Default value: None
2021-05-22 18:50:56 +03:00
Accept pipeline input: False
Accept wildcard characters: False
```
2021-05-23 23:24:44 +03:00
### -name
Name of Location
2021-05-22 18:50:56 +03:00
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
2021-05-23 23:24:44 +03:00
Position: 2
2021-05-22 18:50:56 +03:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -parent_id
Parent location as id
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
2021-05-25 16:11:47 +03:00
Position: 12
2021-06-16 10:37:57 +03:00
Default value: None
2021-05-22 18:50:56 +03:00
Accept pipeline input: False
Accept wildcard characters: False
```
2021-07-14 11:16:55 +03:00
### -RequestType
Http request type to send Snipe IT system.
Defaults to Patch you could use Put if needed.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 14
Default value: Patch
Accept pipeline input: False
Accept wildcard characters: False
```
2021-05-23 23:24:44 +03:00
### -state
Address State
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2021-05-22 18:50:56 +03:00
### -url
2021-08-23 18:50:13 +03:00
Deprecated parameter, please use Connect-SnipeitPS instead.
URL of Snipeit system.
2021-05-22 18:50:56 +03:00
```yaml
Type: String
Parameter Sets: (All)
Aliases:
2021-08-23 18:50:13 +03:00
Required: False
2021-07-14 11:16:55 +03:00
Position: 15
2021-05-22 18:50:56 +03:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2021-05-23 23:24:44 +03:00
### -zip
Address zipcode
2021-05-22 18:50:56 +03:00
```yaml
Type: String
Parameter Sets: (All)
Aliases:
2021-05-23 23:24:44 +03:00
Required: False
Position: 7
2021-05-22 18:50:56 +03:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2021-05-23 23:24:44 +03:00
### -Confirm
Prompts you for confirmation before running the cmdlet.
2021-05-22 18:50:56 +03:00
```yaml
Type: SwitchParameter
Parameter Sets: (All)
2021-05-23 23:24:44 +03:00
Aliases: cf
2021-05-22 18:50:56 +03:00
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2021-05-23 23:24:44 +03:00
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
2021-05-22 18:50:56 +03:00
```yaml
Type: SwitchParameter
Parameter Sets: (All)
2021-05-23 23:24:44 +03:00
Aliases: wi
2021-05-22 18:50:56 +03:00
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters ](http://go.microsoft.com/fwlink/?LinkID=113216 ).
## INPUTS
## OUTPUTS
## NOTES
## RELATED LINKS