{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/revcontent/refs/heads/main/json-schema/ccpa-data-request.json",
  "title": "CCPADataRequest",
  "description": "Form body for POST /stats/api/v1.0/data_requests/submit.",
  "type": "object",
  "properties": {
    "domain": {
      "type": "string",
      "description": "Domain on which widget exists"
    },
    "pub_id": {
      "type": "integer",
      "description": "Publisher Revcontent User Id"
    },
    "request_id": {
      "type": "string",
      "description": "Request ID"
    },
    "email": {
      "type": "string",
      "description": "Email"
    },
    "delete_data": {
      "type": "integer",
      "description": "Should Users Data be deleted? 1 for yes. Otherwise 0"
    }
  },
  "required": [
    "domain",
    "pub_id",
    "request_id",
    "email",
    "delete_data"
  ],
  "x-source": "https://api.revcontent.io/docs/stats/api_data.json#PostSubmitCCPARequest"
}
