Compliance Requests

Assign a compliance request

POST
/organizations/{organizationId}/projects/{projectId}/compliance-requests/{complianceRequestId}/assignee

Assigns the request's task to an org member, creating the task if the request has none. Needs the Premium plan or above. The member must have an account and a role that can work privacy requests and tasks. Pass null to unassign; that works on any plan and returns 404 when the request has no open task.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

organizationId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
Formatuuid
projectId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
Formatuuid
complianceRequestId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/compliance-requests/497f6eca-6276-4993-bfeb-53cbbbba6f08/assignee" \  -H "Content-Type: application/json" \  -d '{    "assigneeId": "665a9750-71bd-4b96-bacd-9efa4ae022dd"  }'
{  "id": "string",  "organizationId": "string",  "title": "string",  "description": "string",  "type": "control",  "referenceId": "string",  "organizationFrameworkId": "string",  "projectId": "string",  "labels": [    "string"  ],  "assigneeType": null,  "assigneeId": null,  "assignedByUserId": null,  "assignedAt": null,  "statusCategory": "backlog",  "status": "string",  "priority": "low",  "dueAt": "string",  "blockedBy": [    "string"  ],  "blockedReason": "string",  "source": "manual",  "originRef": "string",  "createdByType": "user",  "createdById": "string",  "completedAt": "string",  "completedByType": "user",  "completedById": "string",  "cancelReason": "string",  "dateCreated": null,  "dateUpdated": null,  "property1": null,  "property2": null}