{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daon/json-schema/daon-archive-process-instances-response-schema.json",
  "title": "ArchiveProcessInstancesResponse",
  "description": "Throttling summary for a batch archive submission.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daon-process-instance-archiving-api-openapi.yml#/components/schemas/ArchiveProcessInstancesResponse",
  "type": "object",
  "properties": {
    "numInflight": {
      "type": "integer",
      "format": "int64",
      "description": "Number of archives already in-flight for the tenant (PENDING or RETRYING) after this submission."
    },
    "batchSize": {
      "type": "integer",
      "format": "int64",
      "description": "Number of process instances submitted for archiving by this request (already-archived or in-flight instances are skipped)."
    },
    "numThrottled": {
      "type": "integer",
      "format": "int64",
      "description": "Number of process instances in this request that were not submitted because the tenant's in-flight archive limit was reached mid-batch (e.g. a concurrent submission consumed the remaining capacity). Resubmit these later."
    },
    "queuedProcessInstanceIds": {
      "type": "array",
      "description": "The process instance ids that were actually queued for archiving by this request. Size equals batchSize.",
      "items": {
        "type": "string"
      }
    }
  }
}