{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sinch/main/json-schema/sinch-update-batch-request-schema.json",
  "title": "UpdateBatchRequest",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sinch-batches-api-openapi.yml#/components/schemas/UpdateBatchRequest",
  "type": "object",
  "properties": {
    "to_add": {
      "type": "array",
      "description": "Phone numbers to add to the batch",
      "items": {
        "type": "string"
      }
    },
    "to_remove": {
      "type": "array",
      "description": "Phone numbers to remove from the batch",
      "items": {
        "type": "string"
      }
    },
    "from": {
      "type": "string",
      "description": "Updated sender number"
    },
    "body": {
      "type": "string",
      "description": "Updated message body"
    },
    "delivery_report": {
      "type": "string",
      "enum": [
        "none",
        "summary",
        "full",
        "per_recipient"
      ],
      "description": "Updated delivery report type"
    }
  }
}