{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contraforce/json-schema/contraforce-api-response-of-bulk-update-incident-result-dto-schema.json",
  "title": "ApiResponseOfBulkUpdateIncidentResultDto",
  "description": "Standard v2 API response envelope for single-item responses.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contraforce-cross-workspace-incidents-api-openapi.yml#/components/schemas/ApiResponseOfBulkUpdateIncidentResultDto",
  "type": "object",
  "properties": {
    "data": {
      "description": "Outcome of a bulk incident update request after per-incident authorization.",
      "$ref": "#/$defs/BulkUpdateIncidentResultDto"
    },
    "meta": {
      "$ref": "#/$defs/ResponseMeta"
    }
  },
  "$defs": {
    "BulkUpdateIncidentResultDto": {
      "type": "object",
      "properties": {
        "accepted": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "type": "string"
          },
          "description": "Incident IDs the caller is authorized to update. These are scheduled for async processing."
        },
        "forbidden": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "description": "Per-incident rejection detail for a bulk update.",
            "$ref": "#/$defs/ForbiddenBulkUpdateIncidentDto"
          },
          "description": "Incidents the caller is not authorized to update, grouped with the reason."
        }
      },
      "description": "Outcome of a bulk incident update request after per-incident authorization."
    },
    "ForbiddenBulkUpdateIncidentDto": {
      "type": "object",
      "properties": {
        "incidentId": {
          "type": [
            "null",
            "string"
          ]
        },
        "workspaceId": {
          "type": [
            "null",
            "string"
          ]
        },
        "reason": {
          "type": [
            "null",
            "string"
          ]
        }
      },
      "description": "Per-incident rejection detail for a bulk update."
    },
    "ResponseMeta": {
      "type": "object",
      "properties": {
        "requestId": {
          "type": [
            "null",
            "string"
          ]
        },
        "timestamp": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    }
  }
}