{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-create-attachment-response-schema.json",
  "title": "CreateAttachmentResponse",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-create-attachments-api-openapi.yml#/components/schemas/CreateAttachmentResponse",
  "type": "object",
  "required": [
    "attachmentControlNumber",
    "attachmentIds",
    "status",
    "createdAt"
  ],
  "properties": {
    "status": {
      "enum": [
        "CREATED",
        "ACTIVE",
        "CLOSED",
        "ARCHIVED"
      ],
      "type": "string"
    },
    "claimId": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "attachmentIds": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[A-Z]{3}#[0-9]{12}$"
      }
    },
    "attachmentControlNumber": {
      "type": "string",
      "pattern": "^[A-Z]{3}#[0-9a-fA-F]{24}$"
    },
    "imageIntelligenceTransactionId": {
      "type": "string",
      "description": "If the request included image intelligence metadata and the files were successfully processed by Optum Image Intelligence, this field will be populated with the transaction id for reference"
    }
  }
}