RosterBulk edit

Bulk edit

Needs: Roster, Read-write

Applies up to 50 shift edits, for example reassigning staff across several shifts. Each is saved independently, and the response lists the successes and failures.

curl -X PATCH "https://app.imploy.com.au/api/integrations/v1/shifts/bulk" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "updates": [
    {
      "ref": "a:123",
      "staff": [
        {
          "staff_id": 32
        }
      ]
    },
    {
      "ref": "a:124",
      "staff": [
        {
          "staff_id": 32
        }
      ]
    }
  ]
}'
{
  "succeeded": 2,
  "failed": 0,
  "results": [
    {
      "index": 0,
      "ok": true,
      "updated": "a:123"
    },
    {
      "index": 1,
      "ok": true,
      "updated": "a:124"
    }
  ]
}
PATCH
/shifts/bulk
PATCH
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
updatesarray
Required

1 to 50 objects. Each takes the same fields as Edit a shift and needs ref.

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.

Body

application/json
updatesarray
Required

1 to 50 objects. Each takes the same fields as Edit a shift and needs ref.

Responses

OK