Skip to main content
POST
/
{team_id}
/
time
/
tracking
/
lock
Bulk-lock time entries before a date (admin)
curl --request POST \
  --url https://api.superthread.com/v1/{team_id}/time/tracking/lock \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "before": 1608742037016
}
'
{
  "affected_count": 42
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

team_id
string
required

Team ID is an alphanumerical string that identifies a Team. This is externally referred to as a "Workspace".

Body

application/json
before
integer<int64>

unix timestamp in seconds

Example:

1608742037016

Response

Lock applied

affected_count
integer

Number of entries whose locked state changed as a result of the call.

Example:

42