Skip to Content
DevelopersAPI referenceTime

Set cell

PUT
/v1/time/timesheet/cell

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (blk_…) from Settings → API keys.

Request Body

application/json
  1. body
date*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
Formatdate
projectId*|
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
taskId*|
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
seconds*integer
Range0 <= value <= 86400

Response Body

application/json
  1. response
weekStart*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
Formatdate
days*array<>
Items7 <= items <= 7
rows*array<>
approvalsEnabled*boolean
approval*|null
locked*boolean
lockedBefore*|
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
Formatdate
Example Request
curl -X PUT 'https://your-billleaf-api/v1/time/timesheet/cell' \  -H 'Content-Type: application/json' \  -d '{  "date": "2019-08-24",  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",  "taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",  "seconds": 0}'
Example Response200
{  "weekStart": "2019-08-24",  "days": [    "2019-08-24",    "2019-08-24",    "2019-08-24",    "2019-08-24",    "2019-08-24",    "2019-08-24",    "2019-08-24"  ],  "rows": [    {      "projectId": "string",      "projectName": "string",      "clientName": "string",      "taskId": "string",      "taskTitle": "string",      "seconds": [        -9007199254740991,        -9007199254740991,        -9007199254740991,        -9007199254740991,        -9007199254740991,        -9007199254740991,        -9007199254740991      ],      "lockedSeconds": [        -9007199254740991,        -9007199254740991,        -9007199254740991,        -9007199254740991,        -9007199254740991,        -9007199254740991,        -9007199254740991      ]    }  ],  "approvalsEnabled": true,  "approval": {    "id": "string",    "memberId": "string",    "memberName": "string",    "weekStart": "2019-08-24",    "status": "submitted",    "totalSeconds": -9007199254740991,    "billableSeconds": -9007199254740991,    "submittedAt": "2019-08-24T14:15:22Z",    "reviewedAt": "2019-08-24T14:15:22Z",    "reviewedByName": "string",    "note": "string"  },  "locked": true,  "lockedBefore": "2019-08-24"}