cURL
curl --request POST \ --url https://asteragents.com/api/admin/updateUserMetadata \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "userId": "user_2ABC123DEF", "metadata": { "department": "engineering", "title": "Senior Engineer", "team": "backend" } } '
{ "success": true, "message": "<string>" }
Update organization-scoped metadata for a specific user.
Metadata is organization-specific. The same user in different organizations can have different metadata.
JWT token from Clerk authentication.
Must be from a user with org:admin role.
org:admin
Clerk user ID
Key-value pairs of metadata
Show child attributes
Metadata updated successfully