RosterNotify shift staff

Notify shift staff

Needs: Roster, Read-write

Send staff a push notification and email about a published shift, like Notify in the roster sidebar: shift updated, or a clock-in / clock-out reminder. Uses the organisation's shift change notification settings.

Note: Push and email follow the organisation's shift change notification settings; push and email in the response say what happened. Draft and cancelled shifts are refused.

curl -X POST "https://app.imploy.com.au/api/integrations/v1/shifts/example_string/notify" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "type": "clock_in_reminder",
  "staff_id": 42
}'
{
  "notified": true,
  "ref": "a:123",
  "type": "clock_in_reminder",
  "message": "Notification processed successfully.",
  "push": "sent",
  "email": "queued",
  "email_recipients": 1
}
POST
/shifts/{ref}/notify
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.
path
refstring
Required

Shift ref from GET /shifts ("a:123" or "g:45").

Content-Typestring
Required

The media type of the request body

Options: application/json
typestring

shift_updated ("your shift has been updated"), clock_in_reminder or clock_out_reminder.

Options: shift_updated, clock_in_reminder, clock_out_reminder
staff_idinteger

Only this staff member on the shift. Default: everyone on it (or, for an unassigned shift, the staff it is offered to).

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

refstring
Required

Shift ref from GET /shifts ("a:123" or "g:45").

Body

application/json
typestring

shift_updated ("your shift has been updated"), clock_in_reminder or clock_out_reminder.

Allowed values:shift_updatedclock_in_reminderclock_out_reminder
staff_idinteger

Only this staff member on the shift. Default: everyone on it (or, for an unassigned shift, the staff it is offered to).

Responses

OK