Unkey · Schema

V2IdentitiesUpdateIdentityRequestBody

API KeysRate LimitingAuthenticationDeveloper PlatformAccess ControlIdentityAnalytics

Properties

Name Type Description
identity string The ID of the identity to update. Accepts either the externalId (your system-generated identifier) or the identityId (internal identifier returned by the identity service).
meta object Replaces all existing metadata with this new metadata object. Omitting this field preserves existing metadata, while providing an empty object clears all metadata. Avoid storing sensitive data here as
ratelimits array Replaces all existing identity rate limits with this complete list of rate limits. Omitting this field preserves existing rate limits, while providing an empty array removes all rate limits. These lim
View JSON Schema on GitHub

JSON Schema

unkey-v2identitiesupdateidentityrequestbody-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/V2IdentitiesUpdateIdentityRequestBody",
  "title": "V2IdentitiesUpdateIdentityRequestBody",
  "type": "object",
  "properties": {
    "identity": {
      "type": "string",
      "minLength": 1,
      "description": "The ID of the identity to update. Accepts either the externalId (your system-generated identifier) or the identityId (internal identifier returned by the identity service).",
      "example": "user_123"
    },
    "meta": {
      "type": "object",
      "additionalProperties": true,
      "maxProperties": 100,
      "description": "Replaces all existing metadata with this new metadata object.\nOmitting this field preserves existing metadata, while providing an empty object clears all metadata.\nAvoid storing sensitive data here as it's returned in verification responses.\nLarge metadata objects increase verification latency and should stay under 10KB total size.\n",
      "example": {
        "name": "Alice Smith",
        "email": "[email protected]",
        "plan": "premium"
      }
    },
    "ratelimits": {
      "type": "array",
      "maxItems": 50,
      "items": {
        "$ref": "#/components/schemas/RatelimitRequest"
      },
      "description": "Replaces all existing identity rate limits with this complete list of rate limits.\nOmitting this field preserves existing rate limits, while providing an empty array removes all rate limits.\nThese limits are shared across all keys belonging to this identity, preventing abuse through multiple keys.\nRate limit changes take effect immediately but may take up to 30 seconds to propagate across all regions.\n",
      "example": [
        {
          "name": "requests",
          "limit": 1000,
          "duration": 3600000,
          "autoApply": true
        }
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "identity"
  ]
}