Groundeddocs
ReferenceAdmin

Place a legal hold (platform admins with a session; audited as legal_hold.create)

POST/v1/admin/legal-holds

Stops every retention deletion of what the hold covers, from the next retention batch: conversations (a conversation its user deletes stays hidden from them but stored), analytics and usage events, the access log, audit entries, deleted documents' files and expired invites. Holds never expire. Only platform admins and auditors see them.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/admin/legal-holds" \  -H "Content-Type: application/json" \  -d '{    "scopeType": "user",    "scope": "string",    "reason": "string"  }'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "scopeType": "user",    "scopeId": "65fafe40-a220-4dd7-8724-4598b81c0643",    "scopeLabel": "string",    "scopeExists": true,    "scopeContext": "string",    "reason": "string",    "coversFrom": "2019-08-24",    "coversTo": "2019-08-24",    "status": "active",    "createdAt": "2019-08-24T14:15:22Z",    "createdBy": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "displayName": "string",      "email": "string"    },    "releasedAt": "2019-08-24T14:15:22Z",    "releasedBy": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "displayName": "string",      "email": "string"    },    "releaseReason": "string",    "conversations": 0,    "deletedConversations": 0  }}