Policies
Create policy
Creates a new policy.
x-api-key<token>
In: header
Path Parameters
organizationIdstring
Format
uuidid?not unknown
dateCreated?not unknown
dateUpdated?not unknown
typestring
Value in
"aiPolicy" | "cookiePolicy" | "privacyPolicy"namestring
Length
length <= 256statusstring
Value in
"active" | "draft" | "archived"description?string
organizationIdstring
Format
uuidanswers
html?not unknown
associatedProjects?array<string>
includeCookies?boolean
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.concord.tech/privacy-v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/policies" \ -H "Content-Type: application/json" \ -d '{ "type": "aiPolicy", "name": "string", "status": "active", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "answers": [ { "questionId": "string", "answer": "string" } ] }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"dateCreated": 0,
"dateUpdated": 0,
"type": "aiPolicy",
"name": "string",
"status": "active",
"description": "string",
"organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
"answers": [
{
"questionId": "string",
"answer": "string"
}
],
"html": "string",
"associatedProjects": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
],
"includeCookies": true
}{
"statusCode": 404,
"error": "Not Found",
"message": "string"
}{
"statusCode": 404,
"error": "Not Found",
"message": "Forbidden"
}{
"statusCode": 403,
"error": "Forbidden",
"message": "Forbidden"
}{
"statusCode": 404,
"error": "Not Found",
"message": "Not Found"
}{
"statusCode": 422,
"error": "Unprocessable Entity",
"message": "string"
}{
"statusCode": 500,
"error": "Internal Server Error",
"message": "Internal Server Error"
}