v1

latestOpenAPI 3.0.22026-07-24154101.1 MB
Availability

Create Availability

post/v2/company/{company_id}/availabilities

Path parameters

company_idinteger required

Company ID

Headers

x-api-versionstring

An API version

Example:2022-05-01

7shifts API version

x-company-guidstring uuid

Company GUID

Request body

user_idinteger required

User ID

weekstring nullable

Week date of the availability

week_tostring nullable

Week to date of the availability

repeatboolean required

If true, availability is repeating

moninteger required

The availability status for the day

mon_fromstring time required

The start time of the availability for the day

mon_tostring time required

The end time of the availability for the day

mon_commentsstring nullable required

Comments included in the days availability

mon_reasonstring nullable required

The reason ID for the day

tueinteger required

The availability status for the day

tue_fromstring time required

The start time of the availability for the day

tue_tostring time required

The end time of the availability for the day

tue_commentsstring nullable required

Comments included in the days availability

tue_reasonstring nullable required

The reason ID for the day

wedinteger required

The availability status for the day

wed_fromstring time required

The start time of the availability for the day

wed_tostring time required

The end time of the availability for the day

wed_commentsstring nullable required

Comments included in the days availability

wed_reasonstring nullable required

The reason ID for the day

thuinteger required

The availability status for the day

thu_fromstring time required

The start time of the availability for the day

thu_tostring time required

The end time of the availability for the day

thu_commentsstring nullable required

Comments included in the days availability

thu_reasonstring nullable required

The reason ID for the day

friinteger required

The availability status for the day

fri_fromstring time required

The start time of the availability for the day

fri_tostring time required

The end time of the availability for the day

fri_commentsstring nullable required

Comments included in the days availability

fri_reasonstring nullable required

The reason ID for the day

satinteger required

The availability status for the day

sat_fromstring time required

The start time of the availability for the day

sat_tostring time required

The end time of the availability for the day

sat_commentsstring nullable required

Comments included in the days availability

sat_reasonstring nullable required

The reason ID for the day

suninteger required

The availability status for the day

sun_fromstring time required

The start time of the availability for the day

sun_tostring time required

The end time of the availability for the day

sun_commentsstring nullable required

Comments included in the days availability

sun_reasonstring nullable required

The reason ID for the day

Response

Availability created

object'availability' required