Set User Metadata
Sets a list of key value pairs. Existing metadata entries with matching keys are overwritten. Existing metadata entries without matching keys are untouched. To remove existing metadata entries, pass an empty metadata value or use DeleteUserMetadata. If no metadata entry exists for a given key, passing an empty value for that key has no effect (no-op). For HTTP requests, make sure the bytes array value is base64 encoded.
Required permission:
user.write
user_id*user_idID of the user under which the metadata gets set.
application/json- body
metadata?array<>Metadata to bet set. The values have to be base64 encoded.
Success
application/json- response
setDate?set_dateThe timestamp of the update of the user metadata.
date-timecurl -X POST 'https://example.com/v2/users/string/metadata' \ -H 'Content-Type: application/json' \ -d '{}'{ "setDate": "2023-01-15T01:30:15.01Z"}Was this page helpful?
Set the user phone
Set the user phone: Deprecated: [Update the users phone field](/reference/api/user/zitadel.user.v2.UserService.UpdateUser). Set the phone number of a user. If the state is set to not verified, a verification code will...
Start flow with an identity provider
Start flow with an identity provider: Start a flow with an identity provider, for external login, registration or linking..
