{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cm-com/json-schema/cm-com-client-create-schema.json",
  "title": "ClientCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cm-com-client-api-openapi.yml#/components/schemas/ClientCreate",
  "allOf": [
    {
      "$ref": "#/$defs/Client"
    },
    {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "JWT Key. This field is only present in the client create request",
          "readOnly": true
        }
      }
    }
  ],
  "$defs": {
    "Client": {
      "title": "Client",
      "type": "object",
      "properties": {
        "kid": {
          "type": "string",
          "description": "JWT Key ID",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Client name to be used in communication to the end-user. Defaults to the account name when not set."
        },
        "description": {
          "type": "string",
          "description": "Client description"
        },
        "admin": {
          "type": "boolean",
          "description": "Indicates if client is authorized to manage clients",
          "readOnly": true
        },
        "disabled": {
          "type": "boolean",
          "description": "Indicates if client access is disabled"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date the invite was created",
          "readOnly": true
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date the invite was created",
          "readOnly": true
        }
      }
    }
  }
}