Edit a shift row
Needs: Roster, Read-write
Edit a timesheet shift row: times, client/site, AM/PM hours (recalculated from new times unless given), pay item override, include in pay run (approve) and row lock (locked rows keep their values through syncs). Send only what changes. Finalised timesheets and locked staff need unlocking first.
Note: Changes apply in order: unlock, edit, pay item, include, then lock.
curl -X PATCH "https://app.imploy.com.au/api/integrations/v1/timesheet-shifts/123" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"end": "2026-11-18 13:00",
"pay_item": "saturday",
"included": true,
"locked": true
}'
import requests
import json
url = "https://app.imploy.com.au/api/integrations/v1/timesheet-shifts/123"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
data = {
"end": "2026-11-18 13:00",
"pay_item": "saturday",
"included": true,
"locked": true
}
response = requests.patch(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://app.imploy.com.au/api/integrations/v1/timesheet-shifts/123", {
method: "PATCH",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
},
body: JSON.stringify({
"end": "2026-11-18 13:00",
"pay_item": "saturday",
"included": true,
"locked": true
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"end": "2026-11-18 13:00",
"pay_item": "saturday",
"included": true,
"locked": true
}`)
req, err := http.NewRequest("PATCH", "https://app.imploy.com.au/api/integrations/v1/timesheet-shifts/123", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://app.imploy.com.au/api/integrations/v1/timesheet-shifts/123')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
request.body = '{
"end": "2026-11-18 13:00",
"pay_item": "saturday",
"included": true,
"locked": true
}'
response = http.request(request)
puts response.body
{
"updated": [
"end",
"pay_item",
"included",
"locked"
],
"shift": {
"id": 10339,
"staff_id": 42,
"client_id": 2,
"start": "2026-11-18 09:00:00",
"end": "2026-11-18 13:00:00",
"am_hours": 3,
"pm_hours": 1,
"pay_item": "saturday",
"included": true,
"locked": true
}
}
{
"message": "Invalid or expired access token."
}
{
"message": "Access token does not permit this action."
}
{
"message": "Too many requests."
}
/timesheet-shifts/{id}Target server for requests. Edit to use your own host.
An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.
imp_at_. Send it as Authorization: Bearer imp_at_XXXX.Timesheet shift row id (GET /timesheets/{id}).
The media type of the request body
"YYYY-MM-DD HH:MM"
"YYYY-MM-DD HH:MM"
Override the Xero pay item for the whole row; null goes back to automatic.
Include in (or exclude from) the pay run. Including approves the row at its rostered times.
Lock the row (approves it and keeps it through syncs) or unlock it.
Request Preview
Response
Response will appear here after sending the request
Authentication
Bearer token. An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.
Path Parameters
Timesheet shift row id (GET /timesheets/{id}).
Body
"YYYY-MM-DD HH:MM"
"YYYY-MM-DD HH:MM"
Override the Xero pay item for the whole row; null goes back to automatic.
ordinary_hoursweekday_12a_6aweekday_6a_8pweekday_8p_10pweekday_10p_12aovertimesaturdaysundaypublic_holidaybroken_shift_allowancebroken_shift_allowance_restsleepoverInclude in (or exclude from) the pay run. Including approves the row at its rostered times.
Lock the row (approves it and keeps it through syncs) or unlock it.
Responses
OK