{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cm-com/main/json-schema/cm-com-create-apikey-request-schema.json",
  "title": "CreateAPIKeyRequest",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cm-com-payments-pos-cloud-api-v1-9-0-openapi.yml#/components/schemas/CreateAPIKeyRequest",
  "required": [
    "label"
  ],
  "type": "object",
  "properties": {
    "label": {
      "type": "string"
    },
    "validity": {
      "type": [
        "object",
        "null"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/Validity"
        }
      ]
    }
  },
  "$defs": {
    "Validity": {
      "type": "object",
      "properties": {
        "from": {
          "type": [
            "string",
            "null"
          ],
          "allOf": [
            {
              "$ref": "#/$defs/ZonedDateTime"
            }
          ]
        },
        "until": {
          "type": [
            "string",
            "null"
          ],
          "allOf": [
            {
              "$ref": "#/$defs/ZonedDateTime"
            }
          ]
        }
      }
    },
    "ZonedDateTime": {
      "format": "date-time",
      "type": "string"
    }
  }
}