Set user metadata
Sets metadata for the specified UUID. Returns the updated UUID object, optionally including custom properties.
Note:
- You can change all of the UUID object's properties except its identifier.
- Invalid property names are silently ignored and will not cause a request to fail.
- If you set the
custom
property, you must completely replace it since partial updates are not supported. - The custom object can only contain scalar values.
Path Parameters |
---|
sub_key string — REQUIREDYour app's subscribe key from Admin Portal. |
uuid string — REQUIREDA UTF-8 encoded string used to identify the client. Must not be empty and can contain up to 92 UTF-8 byte sequences. Prohibited characters are: |
Query Parameters |
---|
include string[]Possible values: [ List of additional/complex UUID metadata to include in the response. Omit this query parameter if you don't want to retrieve additional metadata. |
auth stringString which is either the auth key (PAM v2) or a valid token (Access Manager) used to authorize the operation if access control is enabled. Authorization token with permissions to perform the request. |
signature stringSignature used to verify that the request was signed with the secret key associated with the subscribe key. If Access Manager is enabled, either a valid authorization token or a signature are required. Check Access Manager documentation for details on how to compute the signature. |
timestamp integerUnix epoch timestamp used as a nonce for signature computation. Must have no more than ± 60 seconds offset from NTP.
Required if |
Header Parameters |
---|
If-Match stringAn optional HTTP header that prevents concurrent modifications of the same User object by allowing clients to (optionally) request that their updates only be performed if the object hasn't been modified since it was read. You can add Imagine the use case where you want to modify an existing User object only if it hasn't been modified since the last time you read it. This is how the flow would look like:
Note The |
Request Body — REQUIRED JSON object with UUID metadata to set. |
---|
name stringPossible values: 1 ≤ length Name of the UUID. Max. 2,048 characters. Must not be empty or consist only of whitespace characters. |
externalId stringUUID's identifier in an external system. Max. 2,048 characters. |
profileUrl uriURL for the UUID's profile picture. Max. 2,048 characters. Syntax is as defined in RFC 3986. |
email emailThe UUID's email address. Max. 320 characters. Syntax is as defined by RFC 5322 and extended by RFC 6532, with one exception: the display-name part is not allowed (only the addr-spec part is allowed). |
type stringUser type. Max. 50 characters. |
status stringUser status. Max. 50 characters. |
custom objectJSON object of key/value pairs with supported data-types. Values must be scalar only; arrays or objects are not supported. NOTE: If you set |
Responses | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 Successfully set UUID metadata.
| |||||||||||||
400 The request body contains invalid data.
| |||||||||||||
403 Disabled - The subscribe key doesn't have App Context API enabled. Forbidden - The client isn't authorized to perform this operation. The authorization key you provided doesn't have the required permissions for this operation.
| |||||||||||||
412 Conditional operation cannot be performed because the target resource has changed since the last retrieval.
| |||||||||||||
415 The format of the request body you supplied isn't supported. The request body must be in JSON format.
| |||||||||||||
429 Request rate limit exceeded.
| |||||||||||||
500 An internal server error occurred.
| |||||||||||||
503 Request processing exceeded the maximum allowed time.
|