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 MarkdownAuthorization
bearer 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" }}Workspace time-entry rules
Required fields and the time lock for the caller's workspace. Any member can read them. Defaults when never configured: no field is required, and neither lock is set. A project is still required by the time-entry routes when requireProject is false.
The running timer
The caller's running entry with a live durationSeconds, or null when nothing is running.