Users
Merge and update a user's metadata
Changed onUpdate a user's metadata attributes by merging existing values with the provided parameters.
This endpoint behaves differently than the Update a user endpoint. Metadata values will not be replaced entirely. Instead, a deep merge will be performed. Deep means that any nested JSON objects will be merged as well.
You can remove metadata keys at any level by setting their value to null.
patch/users/{user_id}/metadata
Request
- Base URL: https://api.clerk.com/v1
- URL: https://api.clerk.com/v1/users/{user_id}/metadata
- Auth: HTTP bearer
Path parameters
user_idstring required
The ID of the user whose metadata will be updated and merged
Request body
Response
Success
Example response
{
"last_active_at": 1700690400000,
"legal_accepted_at": 1700690400000
}Changes
- warning
removed the optional property
///////from the response with the status
- warning
- info
added the optional property
///////to the response with the status
- info