{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/certifyos/main/json-schema/certifyos-shared-section-record-delete-request-schema.json",
  "title": "SharedSectionRecordDeleteRequest",
  "description": "Delete a record of a shared workflow section.",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/certifyos-sharedcredentialingsections-api-openapi.yml#/components/schemas/SharedSectionRecordDeleteRequest",
  "type": "object",
  "required": [
    "expectedTenantIds"
  ],
  "properties": {
    "expectedTenantIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The readable tenants that held the record when it was read."
    },
    "intent": {
      "type": "string",
      "enum": [
        "WORKFLOW_IRRELEVANCE",
        "INCORRECT_PRACTITIONER_ASSOCIATION"
      ]
    },
    "reason": {
      "type": "string",
      "enum": [
        "OUT_OF_CREDENTIALING_SCOPE",
        "DUPLICATE_RECORD",
        "EXPIRED_DATA",
        "OTHER"
      ]
    },
    "reasonText": {
      "type": "string",
      "maxLength": 2000,
      "description": "Required when reason is OTHER."
    }
  }
}