Skip to Content
DevelopersAPI referenceTime

Stop (time)

POST
/v1/time-entries/stop

Authorization

apiKey
headerAuthorizationBearer <token>

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

Response Body

application/json
  1. response
id*string
projectId*string|null
projectName*string|null
clientName*string|null
taskId*string|null
taskTitle*string|null
memberId*string|null
memberName*string
description*string|null
entryDate*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
startedAt*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])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Formatdate-time
endedAt*|
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])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Formatdate-time
durationSeconds*|
Range-9007199254740991 <= value <= 9007199254740991
hasTimes*boolean
billable*boolean
tags*array<>
invoiceId*string|null
invoiceNumber*string|null
isRunning*boolean
isMine*boolean
approvalLocked*boolean
periodLocked*boolean
Example Request
curl -X POST 'https://your-billleaf-api/v1/time-entries/stop'
Example Response200
{  "id": "string",  "projectId": "string",  "projectName": "string",  "clientName": "string",  "taskId": "string",  "taskTitle": "string",  "memberId": "string",  "memberName": "string",  "description": "string",  "entryDate": "2019-08-24",  "startedAt": "2019-08-24T14:15:22Z",  "endedAt": "2019-08-24T14:15:22Z",  "durationSeconds": -9007199254740991,  "hasTimes": true,  "billable": true,  "tags": [    {      "id": "string",      "name": "string",      "color": "gray"    }  ],  "invoiceId": "string",  "invoiceNumber": "string",  "isRunning": true,  "isMine": true,  "approvalLocked": true,  "periodLocked": true}