{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/netcorecloud/main/json-schema/netcorecloud-consent-response-schema.json",
  "title": "ConsentResponse",
  "description": "Represents the standard success response for consent or blocklist actions.",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/netcorecloud-whatsapp-api-openapi.yml#/components/schemas/ConsentResponse",
  "type": "object",
  "required": [
    "status",
    "message"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "success",
        "error"
      ],
      "description": "Indicates success or failure of the request."
    },
    "message": {
      "type": "string",
      "description": "Human-readable message about the response."
    },
    "data": {
      "type": "object",
      "description": "Contains operation result details.",
      "properties": {
        "processed_count": {
          "type": "integer",
          "description": "Number of recipients successfully processed."
        },
        "failed_count": {
          "type": "integer",
          "description": "Number of recipients that failed processing."
        },
        "failed_recipients": {
          "type": "array",
          "description": "List of recipients that failed processing.",
          "items": {
            "type": "object",
            "properties": {
              "recipient": {
                "type": "string"
              },
              "error": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}