External Data Subject Callback Controller

getDataSubjectCallbacks

MethodGET
Prod URLhttps://cpm.trustarc.com/server/api/v1/external/data-subject-callbacks
EU URLhttps://cpm.trustarc.eu/server/api/v1/external/data-subject-callbacks
HeadersAuthorization: Bearer <access_token from 'Token Access' section>
URL ParametersN/A
Sample RequestN/A
Sample Success Response
{
  "content": [
    {
      "dataSubjectTypeIds": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "eventTypes": [
        "CREATED"
      ],
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "url": "string"
    }
  ],
  "empty": true,
  "first": true,
  "last": true,
  "number": 0,
  "numberOfElements": 0,
  "size": 0,
  "sort": {
    "empty": true,
    "sorted": true,
    "unsorted": true
  },
  "totalElements": 0,
  "totalPages": 0
}

 

Where:

  • dataSubjectTypeIds– array of Data Subject Type UUIDs
  • eventTypes– array of string Event Type
  • url– string url endpoint to send post request.
Success ResponseCode: 200 OK
Error Response

Code: 401 Unauthorized

Code: 403 Forbidden

Code: 404 Not Found

getDataSubjectCallbackById

MethodGET
Prod URLhttps://cpm.trustarc.com/server/api/v1/external/data-subject-callbacks/{id}
EU URLhttps://cpm.trustarc.eu/server/api/v1/external/data-subject-callbacks/{id}
HeadersAuthorization: Bearer <access_token from 'Token Access' section>
URL ParametersID - UUID of data subject callback to be retrieved
Sample RequestN/A
Sample Success Response
   {
      "dataSubjectTypeIds": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "eventTypes": [
        "CREATED"
      ],
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "url": "string"
    }
Where:
  • dataSubjectTypeIds– array of Data Subject Type UUIDs
  • eventTypes– array of string Event Type
  • url– string url endpoint to send post request.
Success ResponseCode: 200 OK
Error Response

Code: 401 Unauthorized

Code: 403 Forbidden

Code: 404 Not Found

createDataSubjectCallback

MethodPOST
Prod URLhttps://cpm.trustarc.com/server/api/v1/external/data-subject-callbacks
EU URLhttps://cpm.trustarc.eu/server/api/v1/external/data-subject-callbacks
HeadersAuthorization: Bearer <access_token from 'Token Access' section>
URL ParametersID - UUID of data subject callback to be retrieved
Sample Request
   {
      "dataSubjectTypeIds": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "eventTypes": [
        "CREATED"
      ],
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "url": "string"
    }

 

 Where:

  • accountId– AAA account UUID
  • dataSubjectTypeIds– array of Data Subject Type UUIDs
  • eventTypes– array of string Event Type
  • url– string url endpoint to send post request.
Sample Success Response
    {
      "dataSubjectTypeIds": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "eventTypes": [
        "CREATED"
      ],
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "url": "string"
    }
Where:
  • accountId– AAA account UUID
  • dataSubjectTypeIds– array of Data Subject Type UUIDs
  • eventTypes– array of string Event Type
  • url– string url endpoint to send post request.
Success ResponseCode: 200 OK
Error Response

Code: 401 Unauthorized

Code: 403 Forbidden

Code: 404 Not Found

deleteConsentCallback

MethodDELETE
Prod URLhttps://cpm.trustarc.com/server/api/v1/external/consent-callbacks/{id}
EU URLhttps://cpm.trustarc.eu/server/api/v1/external/consent-callbacks/{id}
HeadersAuthorization: Bearer <access_token from 'Token Access' section>
URL ParametersID - UUID of data subject callback to be deleted
Sample RequestN/A
Sample Success ResponseN/A
Success ResponseCode: 200 OK
Error Response

Code: 401 Unauthorized

Code: 403 Forbidden

Code: 404 Not Found

deleteConsentCallbacksByUrl

MethodDELETE
Prod URLhttps://cpm.trustarc.com/server/api/v1/external/consent-callbacks/{url}
EU URLhttps://cpm.trustarc.eu/server/api/v1/external/consent-callbacks/{url}
HeadersAuthorization: Bearer <access_token from 'Token Access' section>
URL ParametersURL - URL of data subject callback to be deleted
Sample RequestN/A
Sample Success ResponseN/A
Success ResponseCode: 200 OK
Error Response

Code: 401 Unauthorized

Code: 403 Forbidden

Code: 404 Not Found