{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ometria/json-schema/ometria-field-forget-bulk-submission-schema.json",
  "title": "FieldForgetBulkSubmission",
  "description": "A batch of field forget request submissions.",
  "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/FieldForgetBulkSubmission",
  "type": "object",
  "required": [
    "requests"
  ],
  "properties": {
    "requests": {
      "type": "array",
      "description": "A non-empty list, capped at 100 items, of `profile_hash`/`fields` objects, each with the same shape `POST /field-forget` accepts.",
      "minItems": 1,
      "maxItems": 100,
      "items": {
        "$ref": "#/$defs/FieldForgetSubmission"
      }
    }
  },
  "$defs": {
    "FieldForgetSubmission": {
      "type": "object",
      "description": "Field forget request submission. Identifies one profile by its `profile_hash` and names the field(s) to erase.",
      "required": [
        "profile_hash",
        "fields"
      ],
      "properties": {
        "profile_hash": {
          "type": "string",
          "description": "The profile hash of the profile to act on, as returned by `GET /profiles/`.",
          "pattern": "^[0-9a-f]+-[0-9a-f]{6}-[0-9a-f]{8,}$"
        },
        "fields": {
          "type": "array",
          "description": "The field(s) to erase: `email`, `phone`, or both. Order does not matter and duplicates are ignored; the request is stored and returned with the fields sorted alphabetically.",
          "minItems": 1,
          "items": {
            "type": "string",
            "description": "A field that can be forgotten. This list is the set supported by the service and is kept in sync via the service's own spec test.",
            "enum": [
              "email",
              "phone"
            ]
          }
        }
      }
    }
  }
}