v1

latestOpenAPI 3.0.22026-07-24154101.1 MB
Availability

Update Availability

put/v2/company/{company_id}/availabilities/{availability_id}

Path parameters

company_idinteger required

Company ID

availability_idinteger required

Availability ID

Headers

x-api-versionstring

An API version

Example:2022-05-01

7shifts API version

x-company-guidstring uuid

Company GUID

Request body

weekstring nullable

Week date of the availability

week_tostring nullable

Week to date of the availability

repeatboolean

If true, availability is repeating

moninteger

The availability status for the day

mon_fromstring time

The start time of the availability for the day

mon_tostring time

The end time of the availability for the day

mon_commentsstring nullable

Comments included in the days availability

mon_reasonstring nullable

The reason ID for the day

tueinteger

The availability status for the day

tue_fromstring time

The start time of the availability for the day

tue_tostring time

The end time of the availability for the day

tue_commentsstring nullable

Comments included in the days availability

tue_reasonstring nullable

The reason ID for the day

wedinteger

The availability status for the day

wed_fromstring time

The start time of the availability for the day

wed_tostring time

The end time of the availability for the day

wed_commentsstring nullable

Comments included in the days availability

wed_reasonstring nullable

The reason ID for the day

thuinteger

The availability status for the day

thu_fromstring time

The start time of the availability for the day

thu_tostring time

The end time of the availability for the day

thu_commentsstring nullable

Comments included in the days availability

thu_reasonstring nullable

The reason ID for the day

friinteger

The availability status for the day

fri_fromstring time

The start time of the availability for the day

fri_tostring time

The end time of the availability for the day

fri_commentsstring nullable

Comments included in the days availability

fri_reasonstring nullable

The reason ID for the day

satinteger

The availability status for the day

sat_fromstring time

The start time of the availability for the day

sat_tostring time

The end time of the availability for the day

sat_commentsstring nullable

Comments included in the days availability

sat_reasonstring nullable

The reason ID for the day

suninteger

The availability status for the day

sun_fromstring time

The start time of the availability for the day

sun_tostring time

The end time of the availability for the day

sun_commentsstring nullable

Comments included in the days availability

sun_reasonstring nullable

The reason ID for the day

Response

Availability updated

object'availability' required