post Appointment Categories

POST {{baseUrl}}/appointment_categories?subdomain={{subdomain}}

Create an appointment category

Request Params

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

Request Body

{"appointment_category"=>{"name"=>"<string>", "minutes"=>"<integer>", "parent_type"=>"<string>", "parent_id"=>"<integer>", "position"=>"<integer>", "bookable_online"=>"<boolean>", "emr_appt_descriptor_ids"=>["<integer>", "<integer>"]}, "location_id"=>"<integer>"}

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;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;count&quot;:&quot;\u003cinteger\u003e&quot;}