Updating a consent
In order to update an existing consent, a PUT request must be sent to the following endpoint:
https://api.platform.illow.io/public/cookie-consent/{siteId}
Where the siteId is the UUID returned when creating the consent banner.
Request Body
Format: JSON
Property | Type | Required? | Description |
---|---|---|---|
id | string | Yes | The consent ID returned when creating the consent |
categories | Categories Object | Yes | The consent categories to give or revoke. |
gpc | boolean | No | The Global Privacy Control signal |
tcString | string | No | IAB's TCF v2.2 consent string |
userId | string | No | An optional user ID to authenticate the consent sent |
info
To grant a consent for a category, the value sent to the API must be true
. In order to revoke it, a false
value must be posted.