Consent Events
Create consent event(s)
POST
Create new consent event(s) in a project. Each item names its consent type either by consentType id or by category, subcategory and label, and that type must belong to this project. A consentType from another project, or a category/subcategory/label that matches no consent type in this project, returns 400 and no events are created. Each item also needs one of concordId, email, phoneNumber, projectUserId or userId. An implied event is always recorded, but it only becomes the current consent state over a user_click choice when it gives the more protective answer: declined, or accepted for do_not_sell, global_privacy_control and limit_pii_use.
ApiKeyAuthheader
x-api-key<token>organizationId*stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$Format
uuidprojectId*stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$Format
uuidapplication/json- body
items*array<>Items
1 <= itemsDefault Response
application/json- response
count?numberitems?array<unknown>curl -X POST 'https://api.concord.tech/privacy-v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/consent-events' \ -H 'Content-Type: application/json' \ -d '{ "items": [ { "consentState": "implied", "consentAction": "implied" } ]}'Example Response
{ "count": 0, "items": [ null ]}