Set the value of a specified user's property
Sets the value of the specified user’s property. You can use this resource to store a custom data against the user identified by the key or by the id. The user who stores the data is required to have permissions to administer the user.
/api/2/user/properties/{propertyKey}AuthorizationBearer token · headerrequiredPersonal Access Token — Administration > Profile > Personal Access Tokens
AuthorizationBasic auth · headerrequiredIn order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.
propertyKeystringrequiredThe key of the user's property. The maximum length of the key is 255 bytes.
userKeystringKey of the user whose property is to be set
usernamestringUsername of the user whose property is to be set
application/jsonThe request containing value of the user's property. The value has to be a valid, non-empty JSON conforming to http://tools.ietf.org/html/rfc4627. The maximum length of the property value is 32768 bytes.
stringReturned if the user property is successfully updated.
Returned if the user property is successfully created.
Returned if the user key or id is invalid.
Returned if the calling user is not authenticated.
Returned if the calling user does not have permission to administer the user.
Returned if the user with given key or id does not exist.