Consent Events

Create consent event(s)

POST
/organizations/{organizationId}/projects/{projectId}/consent-events

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.

Authorization

ApiKeyAuth
headerx-api-key<token>

Path Parameters

organizationId*string
Match^([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})$
Formatuuid
projectId*string
Match^([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})$
Formatuuid

Request Body

application/json
  1. body
items*array<>
Items1 <= items

Response Body

Default Response

application/json
  1. response
count?number
items?array<unknown>
Example Request
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  ]}