Operatories

View operatory

GET
/operatories/{id}

This endpoint returns a single operatory by its NexHealth ID, optionally including appointment_types or appt_categories.

Authorization

Authorization
Authorization<token>

In: header

Path Parameters

id*integer

NexHealth ID of the operatory

Formatint32

Query Parameters

subdomain*string

Used to scope the request to the specified institution

include[]?array<>

Resources to be included in the response

Header Parameters

Nex-Api-Version*string

The NexHealth API version

Default"v3.0.0"

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 GET "https://example.com/operatories/0?subdomain=string" \  -H "Nex-Api-Version: v3.0.0"
{  "code": false,  "description": "Description",  "error": [    "Error message"  ],  "data": {    "id": 1,    "name": "op1",    "foreign_id": "1",    "foreign_id_type": "--DataSource-",    "location_id": 4,    "last_sync_time": "2020-06-17T19:23:49.176Z",    "created_at": "2020-06-05T20:16:57.007Z",    "updated_at": "2020-06-05T20:16:57.007Z",    "display_name": "op1",    "active": true,    "bookable_online": true,    "appointment_types": [      {        "id": 1,        "name": "Medical",        "parent_type": "Institution",        "parent_id": 1,        "minutes": 15,        "bookable_online": false      }    ]  },  "count": 2}