Create or update a single custom attribute
Changed onUpsert a single custom attribute identified by name. The name is taken from the URL path (URL-encoded). It must be 1-127 characters, must not contain a slash or any control character; spaces, dots, dashes, colons and unicode are allowed. Names starting with $ are reserved for server-side attributes and are rejected (400).
A string value is stored as plain text. A JSON object or array value is stored as a structured value: it is serialized in canonical form (compact, sorted keys) and the attribute is marked with the json flag, so scripts receive it as a hash map or array and JSON representations return it as an object or array rather than as text.
Request
- Base URLhttp://127.0.0.1:8000
- URLhttp://127.0.0.1:8000/v1/objects/{object-id}/custom-attributes/{name}
- AuthHTTP bearer
Path parameters
Custom attribute name (URL-encoded).
Request body
Response
Attribute created or updated.
Changes
- breaking
the request property
became not nullable - breaking
removed
subschema #1subschema #3from therequest propertyoneOflist - info
added
subschema #1subschema #3to therequest propertyoneOflist
- breaking
- breaking
response property
valuelist-of-types was widened by adding typesarray and objectto media typeapplication/jsonof response200 - info
request property
list-of-types was widened by adding typesarray and objectto media typeapplication/json
- breaking