EaserixDocs
DevelopersAPI referenceSignRetention

Set the workspace retention policy

retentionDays omitted or null means keep forever. Once set, a terminal document (completed/declined/cancelled/expired) older than retentionDays past its terminal timestamp is flagged for purge and given graceDays before it is actually deleted.

View as Markdown
PUT
/v1/retention-policy
AuthorizationBearer <token>

In: header

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

curl -X PUT "https://example.com/v1/retention-policy" \  -H "Content-Type: application/json" \  -d '{}'
{  "policy": {    "retentionDays": 0,    "graceDays": 0,    "updatedAt": "2019-08-24T14:15:22Z",    "updatedBy": "string"  }}