{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/acronis/main/json-schema/acronis-client-post-schema.json",
  "title": "clientPost",
  "x-generated": "2026-10-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/acronis-clients-api-openapi.yml#/components/schemas/clientPost",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "tenant_id",
    "token_endpoint_auth_method"
  ],
  "properties": {
    "type": {
      "description": "Client type.",
      "enum": [
        "api_client",
        "managed_client"
      ],
      "type": "string"
    },
    "tenant_id": {
      "$ref": "#/$defs/uuid"
    },
    "data": {
      "description": "Additional metadata, like agentType, hostname, etc...",
      "type": "object"
    },
    "token_endpoint_auth_method": {
      "description": "Explicit specified auth method.",
      "enum": [
        "client_secret_basic",
        "client_secret_post",
        "none"
      ],
      "type": "string"
    },
    "redirect_uris": {
      "description": "List of possible redirect uris.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "origin_id": {
      "description": "Client origin ID.",
      "type": "string"
    }
  },
  "$defs": {
    "uuid": {
      "type": "string",
      "pattern": "[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}",
      "minLength": 36,
      "maxLength": 36
    }
  }
}