Consent types

Get consent types

Get the consent types for the current project.

GET
/{projectId}/consent-types
x-session<token>

In: header

Path Parameters

projectIdstring
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.concord.tech/site-v1/497f6eca-6276-4993-bfeb-53cbbbba6f08/consent-types"
{
  "offset": 0,
  "count": 0,
  "total": 0,
  "items": [
    {
      "createdAt": [
        null
      ],
      "updatedAt": [
        null
      ],
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "organization": "452c1a86-a0af-475b-b03f-724878b0f387",
      "project": "9ec8a81a-31b2-4a83-bcd8-cef9150932d2",
      "category": "disclosure",
      "subcategory": [
        null
      ],
      "label": "string",
      "version": 0,
      "dateCreated": "2019-08-24T14:15:22Z",
      "dateUpdated": "2019-08-24T14:15:22Z",
      "name": "string",
      "description": "string",
      "document": "string",
      "url": "http://example.com",
      "readOnly": false,
      "validStates": [
        "implied"
      ],
      "status": "active",
      "consentDuration": "string",
      "required": false,
      "requireReacceptVersion": 0
    }
  ]
}
{
  "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"
}