{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/4chems-com/json-schema/4chems-com-consent-in-schema.json",
  "title": "ConsentIn",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/4chems-com-consents-api-openapi.yml#/components/schemas/ConsentIn",
  "properties": {
    "document_code": {
      "type": "string",
      "title": "Document Code"
    },
    "document_version": {
      "type": "string",
      "title": "Document Version"
    },
    "tenant_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tenant Id",
      "description": "Record on behalf of this tenant (needs level owner). Omit to record the caller's own consent."
    }
  },
  "type": "object",
  "required": [
    "document_code",
    "document_version"
  ]
}