Users
Replace a user's metadata
Changed onReplace a user's metadata attributes with the provided values.
Unlike PATCH /v1/users/{user_id}/metadata (merge semantics), this endpoint replaces the supplied metadata fields entirely — the prior contents of each supplied field are discarded. Fields omitted from the request body are left unchanged.
Prefer the PATCH endpoint for partial updates. Use PUT only when you explicitly intend to overwrite a metadata field wholesale.
put/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 replaced
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