{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apipass/json-schema/apipass-update-token-request-schema.json",
  "title": "UpdateTokenRequest",
  "description": "更新 token 请求",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apipass-provider-token-api-openapi.yml#/components/schemas/UpdateTokenRequest",
  "properties": {
    "api_key": {
      "type": "string",
      "title": "Api Key"
    },
    "is_active": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Active"
    },
    "clear_needs_refresh": {
      "type": "boolean",
      "title": "Clear Needs Refresh",
      "default": true
    },
    "error_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error Message"
    },
    "token_expires_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Token Expires At"
    }
  },
  "type": "object",
  "required": [
    "api_key"
  ]
}