Update

Update

Update

Updates an existing terms entry 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 terms entry.

Headers

Name
Required
Type
Description
APIKey

Guid
A valid API key with a scope of AccountLists

Body

Name
Required
Type
Description
terms
Text
The label for the terms entry. If supplied, it is subject to the same validation as create (maximum 32 characters, cannot be empty). If omitted, the currently stored label is left unchanged.
active
Boolean
Indicates if the terms entry is active or inactive. If omitted, the currently stored value is left unchanged.
{
"active": false
}

Remarks

All fields are optional on update. Omitting a field entirely leaves that field's currently stored value unchanged — it is not reset to a default. In the example above, only active is supplied, so the terms entry's terms label is left exactly as it was before the update.
If a field is supplied, it is validated the same way it is on Create. Supplying an empty terms value is different from omitting it and will fail validation, since terms cannot be empty.
A terms label must remain unique within an account. If terms is supplied and it matches the label of another terms entry on the same account, the request will fail with a 409 Conflict.

Response

Headers

None

Status Code

Code
Description
200 OK
The terms entry was updated. The updated terms entry is returned.
400 Bad Request
The terms entry was not updated. This occurs if terms is supplied but is empty or exceeds 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, or the key does not have the required scope.
404 Not Found
No terms were found with that id for this account.
409 Conflict
Terms with that label already exist for this account.

Body

Name
Type
Description
uniqueId
Guid
The unique ID of the terms entry.
terms
Text
The label for the terms entry.
active
Boolean
Indicates if the terms entry is active or inactive.