POST
/
shifts
curl --request POST \
  --url https://api.axlehealth.com/api/v2-stable/shifts \
  --header 'Content-Type: application/json' \
  --data '{
  "clinician_id": "7d8e9f1b-2c3d-4e5f-6a7b-8c9d0e1f2a3b",
  "timezone": "America/Los_Angeles",
  "start_datetime": "2023-06-02 08:00:00-0700",
  "end_datetime": "2023-06-02 16:00:00-0700",
  "rrule": "",
  "exclude_datetimes": [],
  "mobile_territory_ids": [
    {
      "territory_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ],
  "virtual_territory_ids": [],
  "clinic_ids": [],
  "notes": "We may change the clinician on this one."
}'
{
  "shift_id": "3c4d5e6f-7a8b-9c0d-1e2f-3a4b5c6d7e8f"
}

Body

application/json

Response

200 - application/json

Shift created successfully

The response is of type object.