Unkey · Example Payload

Unkey Identitiesupdateidentity Example

API KeysRate LimitingAuthenticationDeveloper PlatformAccess ControlIdentityAnalytics

Unkey Identitiesupdateidentity Example is an example object payload from Unkey, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "identities.updateIdentity",
  "method": "POST",
  "path": "/v2/identities.updateIdentity",
  "summary": "Update Identity",
  "requestExamples": [
    {
      "contentType": "application/json",
      "name": "updateMetadata",
      "example": {
        "identity": "user_123",
        "meta": {
          "email": "alice@example.com",
          "name": "Alice Smith",
          "plan": "premium"
        }
      }
    }
  ],
  "responseExamples": [
    {
      "status": "403",
      "contentType": "application/json",
      "name": "missingPermission",
      "example": {
        "error": {
          "detail": "Your root key requires the 'identity.*.update_identity' permission to perform this operation",
          "status": 403,
          "title": "Forbidden",
          "type": "forbidden"
        },
        "meta": {
          "requestId": "req_0uVwX4yZaAbCdEfGhIjKl"
        }
      }
    },
    {
      "status": "404",
      "contentType": "application/json",
      "name": "identityNotFound",
      "example": {
        "error": {
          "detail": "Identity with externalId \"user_123\" not found.",
          "status": 404,
          "title": "Not Found",
          "type": "not_found"
        },
        "meta": {
          "requestId": "req_2wXyZaAbCdEfGhIjKlMnOp"
        }
      }
    }
  ]
}