Skip to main content

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

PropertyTypeRequired?Description
idstringYesThe consent ID returned when creating the consent
categoriesCategories ObjectYesThe consent categories to give or revoke.
gpcbooleanNoThe Global Privacy Control signal
tcStringstringNoIAB's TCF v2.2 consent string
userIdstringNoAn 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.