Updates an existing customer type on an account.
The unique ID of the account.
The unique ID of the customer type.
A valid API key with a scope of AccountLists
The name of the customer type. If supplied, must not be empty and must be 32 characters or fewer. Omit to leave the current value unchanged.
Indicates if the customer type is active or inactive. Omit to leave the current value unchanged.
Every field in the body is optional. A field that is omitted from the request is left exactly as it is currently stored — it is not reset to a default value. Only fields that are explicitly supplied are validated and updated, using the same validation rules as create (name must not be empty and must be 32 characters or fewer). In the example above, only active is changed; the stored name value is left untouched.
Customer type names must be unique per account. This is enforced by the API itself, not by a database constraint, and still applies when a new name value is supplied on update.
None
The updated customer type was returned.
The customer type was not updated. This occurs if name is supplied but is empty or longer than 32 characters.
The API key is missing, invalid, disabled, or does not have the correct scope.
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.
No customer type was found with that id for this account.
A customer type with that name already exists for this account.
The unique ID of the customer type.
The name of the customer type.
Indicates if the customer type is active or inactive.