Add a shift row
Needs: Roster, Read-write
Add a manual shift row to a staff member on a timesheet, like Add shift on the timesheet. Needs client_id or site_id. AM/PM hours are split at noon from the times unless you send them.
curl -X POST "https://app.imploy.com.au/api/integrations/v1/timesheets/123/shifts" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"staff_id": 42,
"start": "2026-11-18 09:00",
"end": "2026-11-18 14:30",
"client_id": 2
}'
import requests
import json
url = "https://app.imploy.com.au/api/integrations/v1/timesheets/123/shifts"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
data = {
"staff_id": 42,
"start": "2026-11-18 09:00",
"end": "2026-11-18 14:30",
"client_id": 2
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://app.imploy.com.au/api/integrations/v1/timesheets/123/shifts", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
},
body: JSON.stringify({
"staff_id": 42,
"start": "2026-11-18 09:00",
"end": "2026-11-18 14:30",
"client_id": 2
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"staff_id": 42,
"start": "2026-11-18 09:00",
"end": "2026-11-18 14:30",
"client_id": 2
}`)
req, err := http.NewRequest("POST", "https://app.imploy.com.au/api/integrations/v1/timesheets/123/shifts", 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/timesheets/123/shifts')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
request.body = '{
"staff_id": 42,
"start": "2026-11-18 09:00",
"end": "2026-11-18 14:30",
"client_id": 2
}'
response = http.request(request)
puts response.body
{
"created": 10339,
"shift": {
"id": 10339,
"staff_id": 42,
"client_id": 2,
"start": "2026-11-18 09:00:00",
"end": "2026-11-18 14:30:00",
"clock_in": "2026-11-18 09:00:00",
"clock_out": "2026-11-18 14:30:00",
"am_hours": 3,
"pm_hours": 2.5,
"included": true,
"locked": false
}
}
{
"message": "Invalid or expired access token."
}
{
"message": "Access token does not permit this action."
}
{
"message": "client_id or site_id is required.",
"error": "client_id or site_id is required."
}
{
"message": "Too many requests."
}
/timesheets/{timesheet_id}/shiftsTarget 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.The timesheet id.
The media type of the request body
Staff member on the timesheet.
"YYYY-MM-DD HH:MM"
"YYYY-MM-DD HH:MM"
Hours before noon (default: worked out from the times).
Hours after noon (default: worked out from the times).
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
The timesheet id.
Body
Staff member on the timesheet.
"YYYY-MM-DD HH:MM"
"YYYY-MM-DD HH:MM"
Hours before noon (default: worked out from the times).
Hours after noon (default: worked out from the times).