{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ometria/json-schema/ometria-field-forget-submission-schema.json",
  "title": "FieldForgetSubmission",
  "description": "Field forget request submission. Identifies one profile by its `profile_hash` and names the field(s) to erase.",
  "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/FieldForgetSubmission",
  "type": "object",
  "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"
        ]
      }
    }
  }
}