Appointment Types

Create appointment type

POST
/appointment_types

This endpoint creates an appointment type under the institution specified by the subdomain parameter, or a specific location within it when appointment types are location specific; location_id is required in that case.

Authorization

Authorization
Authorization<token>

In: header

Query Parameters

subdomain*string

Used to scope the request to the specified institution

Header Parameters

Nex-Api-Version*string

The NexHealth API version

Default"v3.0.0"

Request Body

application/json

Create appointment type

location_id?integer

ID of the associated location, required when appointment types are location specific

Formatint32
appointment_type*

Response Body

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

curl -X POST "https://example.com/appointment_types?subdomain=string" \  -H "Nex-Api-Version: v3.0.0" \  -H "Content-Type: application/json" \  -d '{    "appointment_type": {}  }'
{  "code": false,  "description": "Description",  "error": [    "Error message"  ],  "data": {    "id": 1,    "name": "Medical",    "parent_type": "Institution",    "parent_id": 1,    "minutes": 15,    "bookable_online": false  },  "count": 2}