Skip to content

Set team member schedules

Request

Sets work schedules for team members by date.

Supports both setting new schedules and deleting existing ones in a single request.

Returns the resulting schedules for affected team members within the date range from minimum to maximum modified date.

Security
BearerPartnerUser
Path
location_idintegerrequired

Location ID

Example:720441
Headers
Acceptstringrequired
Default:"application/vnd.api.v2+json"
Content-Typestringrequired
Default:"application/json"
Authorizationstringrequired

Bearer {partner_token}, User {user_token}

Bodyapplication/jsonrequired
schedules_to_setArray of objects

Schedules to create or update

schedules_to_deleteArray of objects

Schedules to delete (make non-working days)

curl -i -X PUT \
  https://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/720441/team_members/schedule \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "schedules_to_set": [
      {
        "staff_id": 12345,
        "dates": [
          "2026-01-31",
          "2026-02-01"
        ],
        "slots": [
          {
            "from": "10:00",
            "to": "14:00"
          },
          {
            "from": "15:00",
            "to": "19:00"
          }
        ]
      }
    ],
    "schedules_to_delete": [
      {
        "staff_id": 12345,
        "dates": [
          "2026-02-02"
        ]
      }
    ]
  }'

Responses

Schedules updated successfully

Bodyapplication/json
successboolean
Example:true
dataArray of objects

Resulting schedules for modified team members

metaobject
Response
{ "success": true, "data": [ { … } ], "meta": { "count": 2 } }