Update

Update

Update

Updates an existing location on an account.

Request

Method
URL
PUT

Path Parameters

Name
Required
Type
Description
accountUniqueId

Guid
The unique ID of the account.
itemUniqueId

Guid
The unique ID of the location.

Headers

Name
Required
Type
Description
APIKey

Guid
A valid API key with a scope of AccountLists

Body

Name
Required
Type
Description
location

Text
The label of the location. Must not be empty and must be 32 characters or fewer.
{
"location": "Store #4"
}

Remarks

Unlike tables with an Active column, locations have only one mutable field, so it is required on update just as it is on create — there's no partial/omit-to-leave-unchanged behavior here. The full label must be supplied on every update.
Location labels must still be unique per account when a new location value is supplied.

Response

Headers

None

Status Code

Code
Description
200 OK
The updated location was returned.
400 Bad Request
The location was not updated. This occurs if location is missing, empty, or longer than 32 characters.
401 Unauthorized
The API key is missing, invalid, disabled, or does not have the correct scope.
403 Forbidden
The API key does not belong to this account, the account does not have the API keys feature enabled, or the key does not have the required scope.
404 Not Found
No location was found with that id for this account.
409 Conflict
A location with that name already exists for this account.

Body

Name
Type
Description
uniqueId
Guid
The unique ID of the location.
location
Text
The label of the location.