EaserixDocs
DevelopersAPI referenceCronCrunchEntries

Update workspace time-entry rules

Partial update. Only an owner or admin may change these rules. A missing boolean is left as it is. lockOlderThanDays is a whole number from 1 to 3650, or null to turn that lock off. lockBefore is a YYYY-MM-DD date, or null to turn that lock off. The two locks are independent: an entry is locked when either one matches. "Older than N days" is a rolling UTC window. "Before a date" locks instants before that date at 00:00 UTC, so the date itself stays open. Required fields apply to everyone, including an owner or admin. The time lock does not: an owner or admin can still create, edit, delete, and stop locked time.

View as Markdown
PUT
/v1/workspace-settings
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/workspace-settings" \  -H "Content-Type: application/json" \  -d '{}'
{  "settings": {    "requireProject": true,    "requireDescription": true,    "requireTag": true,    "requireTask": true,    "lockOlderThanDays": 0,    "lockBefore": "2019-08-24"  }}