{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cayra-io/json-schema/cayra-io-agreement-version-create-request-schema.json",
  "title": "AgreementVersionCreateRequest",
  "description": "Create new agreement version",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cayra-io-agreements-api-openapi.yml#/components/schemas/AgreementVersionCreateRequest",
  "properties": {
    "agreement_id": {
      "type": "string",
      "format": "uuid",
      "title": "Agreement Id"
    },
    "version_label": {
      "type": "string",
      "maxLength": 32,
      "title": "Version Label"
    },
    "effective_from": {
      "type": "string",
      "format": "date-time",
      "title": "Effective From"
    },
    "document_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Document Url"
    },
    "document_hash": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "title": "Document Hash"
    },
    "content": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content"
    }
  },
  "type": "object",
  "required": [
    "agreement_id",
    "version_label",
    "effective_from"
  ]
}