Correct clock times
Needs: Roster, Read-write
Add or correct a staff member's clock-in and clock-out times on a shift, like Edit clock times in the roster sidebar. The change and reason go on the shift's audit log. When both times are set the shift is billed as a clock out would. Rows locked on a finalised timesheet can't change.
Note: Send a time to set it,
nullto clear it, or leave it out to keep it. Clock-out needs a clock-in. Rows locked on a finalised timesheet return422.
curl -X PUT "https://app.imploy.com.au/api/integrations/v1/shifts/example_string/clock-times" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"staff_id": 42,
"clock_out": "2026-11-28 11:15",
"reason": "Left later than recorded"
}'
import requests
import json
url = "https://app.imploy.com.au/api/integrations/v1/shifts/example_string/clock-times"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
data = {
"staff_id": 42,
"clock_out": "2026-11-28 11:15",
"reason": "Left later than recorded"
}
response = requests.put(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://app.imploy.com.au/api/integrations/v1/shifts/example_string/clock-times", {
method: "PUT",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
},
body: JSON.stringify({
"staff_id": 42,
"clock_out": "2026-11-28 11:15",
"reason": "Left later than recorded"
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"staff_id": 42,
"clock_out": "2026-11-28 11:15",
"reason": "Left later than recorded"
}`)
req, err := http.NewRequest("PUT", "https://app.imploy.com.au/api/integrations/v1/shifts/example_string/clock-times", 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/shifts/example_string/clock-times')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Put.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
request.body = '{
"staff_id": 42,
"clock_out": "2026-11-28 11:15",
"reason": "Left later than recorded"
}'
response = http.request(request)
puts response.body
{
"updated": true,
"ref": "a:123",
"staff_id": 42,
"clock_in": "2026-11-28 09:02:00",
"clock_out": "2026-11-28 11:15:00"
}
{
"message": "Invalid or expired access token."
}
{
"message": "Access token does not permit this action."
}
{
"message": "reason is required (3 to 255 characters): say why the clock times are changing.",
"error": "reason is required (3 to 255 characters): say why the clock times are changing."
}
{
"message": "Too many requests."
}
/shifts/{ref}/clock-timesTarget 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.Shift ref from GET /shifts ("a:123" or "g:45").
The media type of the request body
Staff member on the shift whose times change.
"YYYY-MM-DD HH:MM" (organisation local time), or null to clear. Left out: unchanged.
"YYYY-MM-DD HH:MM", or null to clear. Left out: unchanged.
Why the times are changing (3 to 255 characters); saved on the shift's audit log.
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
Shift ref from GET /shifts ("a:123" or "g:45").
Body
Staff member on the shift whose times change.
"YYYY-MM-DD HH:MM" (organisation local time), or null to clear. Left out: unchanged.
"YYYY-MM-DD HH:MM", or null to clear. Left out: unchanged.
Why the times are changing (3 to 255 characters); saved on the shift's audit log.
Responses
OK