TimesheetsLock or unlock staff

Lock or unlock staff

Needs: Roster, Read-write

Lock a staff member on a timesheet (approves all their rows: included, missing clock times filled with rostered times) or unlock them.

curl -X POST "https://app.imploy.com.au/api/integrations/v1/timesheets/123/staff/123/lock" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "locked": true
}'
{
  "timesheet_id": 202,
  "staff_id": 42,
  "locked": true
}
POST
/timesheets/{timesheet_id}/staff/{staff_id}/lock
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.
Content-Typestring
Required

The media type of the request body

Options: application/json
lockedboolean

false unlocks the staff member.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

Path Parameters

staff_idinteger
Required

The staff member id.

Body

application/json
lockedboolean

false unlocks the staff member.

Responses

OK