post Availabilities

POST {{baseUrl}}/availabilities?subdomain={{subdomain}}&location_id={{location_id}}

Create an availability

Request Params

KeyDatatypeRequiredDescription
subdomainstring(Required) Used to scope the request to the specified institution
location_idstring(Required) Used to scope the request to the specified institution

Request Body

{"availability"=>{"provider_id"=>"<integer>", "begin_time"=>"<dateTime>", "end_time"=>"<dateTime>", "operatory_id"=>"<integer>", "appointment_category_ids"=>["<integer>", "<integer>"], "days"=>["<string>", "<string>"], "specific_date"=>"<date>", "custom_recurrence"=>{"num"=>"<integer>", "ref"=>"<date>", "unit"=>"<string>"}, "active"=>true}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;code&quot;:&quot;\u003cboolean\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;error&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;data&quot;:{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;provider_id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;operatory_id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;begin_time&quot;:&quot;\u003cstring\u003e&quot;,&quot;end_time&quot;:&quot;\u003cstring\u003e&quot;,&quot;appointment_types&quot;:[{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;parent_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;parent_id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;minutes&quot;:&quot;\u003cinteger\u003e&quot;,&quot;bookable_online&quot;:&quot;\u003cboolean\u003e&quot;},{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;parent_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;parent_id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;minutes&quot;:&quot;\u003cinteger\u003e&quot;,&quot;bookable_online&quot;:&quot;\u003cboolean\u003e&quot;}],&quot;days&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;specific_date&quot;:&quot;\u003cdate\u003e&quot;,&quot;custom_recurrence&quot;:&quot;\u003cobject\u003e&quot;,&quot;active&quot;:&quot;\u003cboolean\u003e&quot;,&quot;synced&quot;:&quot;\u003cboolean\u003e&quot;},&quot;count&quot;:&quot;\u003cinteger\u003e&quot;}