SautiDesk
SautiDesk API
Workspace configuration

Update activity log retention

PATCH
/v1/desk/admin/activity-settings

Changes whether the activity log is kept (enabled) and for how many days (retention_days).

Requires: desk.admin scope, workspace owner or admin.

Authorization

bearerAuth
AuthorizationBearer <token>

A SautiDesk API key. An owner or admin makes it under Settings in SautiDesk for a named person and picks the scopes. The key is shown once. Send it as Authorization: Bearer <key>. It acts as that person and as nobody else.

In: header

Request Body

application/json

Response

OK

Example

{  "enabled": false,  "retention_days": 1,  "retention_choices": [    {      "days": 1,      "allowed": false,      "reason": "Outside business hours"    }  ],  "plan_max_days": 1,  "size_bytes": 1}
FieldTypeDescription
enabledrequiredbooleanTrue to switch it on, false to switch it off.
retention_daysrequiredintegerHow many days the activity log is kept before it is cleared.
retention_choicesrequiredobject[]
daysrequiredinteger
allowedrequiredboolean
reasonstringWhy, in a few words, for example Lunch.
plan_max_daysrequiredinteger
size_bytesrequiredinteger
curl -X PATCH "https://api.sautidesk.com/v1/desk/admin/activity-settings" \  -H "Content-Type: application/json" \  -d '{    "enabled": false,    "retention_days": 1  }'