{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nopaque-co-uk/json-schema/nopaque-co-uk-update-api-key-response-schema.json",
  "title": "UpdateApiKeyResponse",
  "description": "Response from `PATCH /workspaces/{workspaceId}/api-keys/{keyId}`. Echoes the key id\nplus **only the fields that were changed** — it is not a full key representation.\n",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nopaque-co-uk-api-keys-api-openapi.yml#/components/schemas/UpdateApiKeyResponse",
  "type": "object",
  "required": [
    "id"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "label": {
      "type": "string"
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}