identities
Update Identity
Update 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 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"
}
}