identities
Update Identity
Changed onUpdate an identity's metadata and rate limits. Only specified fields are modified - others remain unchanged.
Perfect for subscription changes, plan upgrades, or updating user information. Changes take effect immediately.
Important Requires identity.*.update_identity permission Rate limit changes propagate within 30 seconds
post/v2/identities.updateIdentity
Request
- Base URLhttps://api.unkey.com
- URLhttps://api.unkey.com/v2/identities.updateIdentity
- AuthHTTP bearer
Request body
Example request
{
"identity": "user_123",
"meta": {
"name": "Alice Smith",
"email": "alice@example.com",
"plan": "premium"
},
"ratelimits": [
{
"name": "requests",
"limit": 1000,
"duration": 3600000,
"autoApply": true
}
]
}Response
Identity successfully updated
Example response
{
"data": {
"ratelimits": [
{
"id": "rl_1234567890abcdef",
"name": "api_requests",
"limit": 1000,
"duration": 3600000,
"autoApply": true
}
]
},
"meta": {
"requestId": "req_123"
}
}Changes
- info
the endpoint scheme security
bearerwas added to the API - info
the endpoint scheme security
rootKeywas removed from the API
- info
- info
added the non-success response with the status
- info