PractitionerRotas

Update a practitioner rota by ID

Updates the PractitionerRota identified by practitionerRotaId. The practitioner the rota belongs to cannot be changed; create a new rota and delete the old one if you need to move the schedule between practitioners.

put/shop/practitioner-rotas/{practitionerRotaId}

Request body

start_datestring date nullable

The date from which this rota is active (YYYY-MM-DD).

end_datestring date nullable

The date on which this rota ends. Pass null for an open-ended rota.

scheduling_week_intervalinteger required

The number of weeks in the rolling schedule cycle.

Example request

{
  "scheduling_week_interval": 2,
  "availability_rules": [
    {
      "week_num": 1,
      "weekday": "monday",
      "time_from": "09:00",
      "time_to": "17:00",
      "offerings": [
        {
          "offering_name": "Twilight massage",
          "offering_type": "appointment"
        }
      ]
    }
  ]
}

Response

A single PractitionerRota object.

Example response

{
  "data": {
    "scheduling_week_interval": 2,
    "availability_rules": [
      {
        "week_num": 1,
        "weekday": "monday",
        "time_from": "09:00",
        "time_to": "17:00",
        "offerings": [
          {
            "offering_name": "Twilight massage",
            "offering_type": "appointment"
          }
        ]
      }
    ]
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.