POST
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
consent-events
curl --request POST \
  --url https://api.concord.tech/privacy-v1/organizations/{organizationId}/projects/{projectId}/consent-events \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "items": [
    {
      "projectUserId": "<string>",
      "userId": "<string>",
      "email": "jsmith@example.com",
      "phoneNumber": "<string>",
      "concordId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "consentType": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "category": "disclosure",
      "subcategory": [
        "<any>"
      ],
      "label": "<string>",
      "consentState": "implied",
      "consentAction": "implied",
      "consentDate": "2023-11-07T05:31:56Z",
      "expirationDate": "2023-11-07T05:31:56Z"
    }
  ]
}'
{
  "count": 123,
  "items": [
    {
      "createdAt": [
        "<any>"
      ],
      "updatedAt": [
        "<any>"
      ],
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "concordId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "consentAction": "implied",
      "consentDate": "2023-11-07T05:31:56Z",
      "consentState": "implied",
      "dateCreated": "2023-11-07T05:31:56Z",
      "dateUpdated": "2023-11-07T05:31:56Z",
      "consentType": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "expirationDate": "2023-11-07T05:31:56Z",
      "organization": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "project": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "session": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "ipAddress": "127.0.0.1",
        "domain": "localhost",
        "geography": "<string>",
        "userAgent": "<string>"
      },
      "submitter": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "category": "disclosure",
      "subcategory": [
        "<any>"
      ],
      "label": "<string>",
      "version": 123
    }
  ]
}

Authorizations

x-api-key
string
header
required

Path Parameters

organizationId
string
required
projectId
string
required

Body

application/json
items
object[]
required

Response

201
application/json
Default Response
count
number
items
object[]