{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ometria/json-schema/ometria-field-forget-bulk-response-schema.json",
  "title": "FieldForgetBulkResponse",
  "description": "The outcome of a bulk field forget submission: one result per submitted item, plus counts by outcome.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ometria-field-forget-email-phone-erasure-api-openapi.yml#/components/schemas/FieldForgetBulkResponse",
  "type": "object",
  "properties": {
    "request_id": {
      "type": "string",
      "description": "Identifies this `POST /field-forget/bulk` call. If you sent an `X-Request-ID` header on the call, this is its value, so you can correlate it with your own logs; otherwise Ometria generates one."
    },
    "accepted": {
      "type": "integer",
      "description": "Number of items that created a new request."
    },
    "duplicate": {
      "type": "integer",
      "description": "Number of items that matched a request already `pending` or `in_progress` and less than 24 hours old."
    },
    "rejected": {
      "type": "integer",
      "description": "Number of items that failed validation and created no request."
    },
    "results": {
      "type": "array",
      "description": "One entry per submitted item, in the same order as submitted.",
      "items": {
        "$ref": "#/$defs/FieldForgetBulkResult"
      }
    }
  },
  "$defs": {
    "FieldForgetBulkResult": {
      "type": "object",
      "description": "The outcome of one item from a bulk field forget submission.",
      "properties": {
        "index": {
          "type": "integer",
          "description": "Position of this item in the submitted `requests` array."
        },
        "profile_hash": {
          "type": [
            "string",
            "null"
          ],
          "description": "Echoed only when the submitted value was actually a string."
        },
        "result": {
          "type": "string",
          "description": "`accepted`: a new request was created. `duplicate`: matched a request already `pending` or `in_progress` and less than 24 hours old; `id` is that existing request. `rejected`: the item failed validation and no request was created.",
          "enum": [
            "accepted",
            "duplicate",
            "rejected"
          ]
        },
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The request ID. Use it with `GET /field-forget/{id}` to poll for the outcome. `null` for a `rejected` item, which created no request."
        },
        "message": {
          "type": "string",
          "description": "Present only when `result` is `rejected`: what was wrong with this item."
        }
      }
    }
  }
}