curl --request POST \
--url https://api.concord.tech/privacy-v1/organizations/{organizationId}/projects/{projectId}/consent-types \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"category": "disclosure",
"subcategory": [
"<any>"
],
"label": "<string>",
"name": "<string>",
"description": "<string>",
"document": "<string>",
"url": "<string>",
"validStates": [
"implied"
],
"consentDuration": "<string>",
"status": "active",
"required": false,
"requireReaccept": false
}'
{
"createdAt": [
"<any>"
],
"updatedAt": [
"<any>"
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category": "disclosure",
"subcategory": [
"<any>"
],
"label": "<string>",
"version": 123,
"dateCreated": "2023-11-07T05:31:56Z",
"dateUpdated": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"document": "<string>",
"url": "<string>",
"readOnly": false,
"validStates": [
"implied"
],
"status": "active",
"consentDuration": "<string>",
"required": false,
"requireReacceptVersion": 123
}
Create a new consent type in a project.
curl --request POST \
--url https://api.concord.tech/privacy-v1/organizations/{organizationId}/projects/{projectId}/consent-types \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"category": "disclosure",
"subcategory": [
"<any>"
],
"label": "<string>",
"name": "<string>",
"description": "<string>",
"document": "<string>",
"url": "<string>",
"validStates": [
"implied"
],
"consentDuration": "<string>",
"status": "active",
"required": false,
"requireReaccept": false
}'
{
"createdAt": [
"<any>"
],
"updatedAt": [
"<any>"
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category": "disclosure",
"subcategory": [
"<any>"
],
"label": "<string>",
"version": 123,
"dateCreated": "2023-11-07T05:31:56Z",
"dateUpdated": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"document": "<string>",
"url": "<string>",
"readOnly": false,
"validStates": [
"implied"
],
"status": "active",
"consentDuration": "<string>",
"required": false,
"requireReacceptVersion": 123
}
Default Response
The response is of type object
.