POST /v2/consents

Changed on

Create and insert a consent

Request

Headers

x-country-code-overridestring

Valid ISO 3166-1 country code to override the country resolution based on the IP address.

x-region-code-overridestring

Valid ISO 3166-2 region code to override the region resolution based on the IP address

Request body

sessionTokenstring

Optional session token returned by the create profile endpoint.

attributesobject required

Custom key/value attributes, e.g. { "platform": "Linux x86_64" }. ipAddress and userAgent are set by the API.

originstring
jurisdictionstring

Response

Consent inserted

Changes