{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tpsclear-co-uk/json-schema/tpsclear-co-uk-post-v1-consents-response-schema.json",
  "title": "PostV1ConsentsResponse",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/tpsclear-co-uk-openapi-generated.yml#/components/schemas/PostV1ConsentsResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "description": "Operation success"
    },
    "added": {
      "type": "integer",
      "description": "Number of new entries added"
    },
    "alreadyListed": {
      "type": "integer",
      "description": "Number of entries already on the list"
    },
    "invalid": {
      "type": "array",
      "description": "Array of up to 50 rejected values"
    },
    "invalidRows": {
      "type": "array",
      "description": "Detailed error information for each invalid row"
    },
    "invalidCount": {
      "type": "integer",
      "description": "Total count of invalid entries"
    },
    "total": {
      "type": "integer",
      "description": "Total consents on the list after operation"
    }
  }
}