Delete appointment type
This endpoint permanently deletes the appointment type for a specific ID under the institution specified by the subdomain parameter, or under a specific location within it when appointment types are location specific; location_id is required in that case. Appointments that reference this appointment type are not deleted — their appointment_type association is cleared.
Authorization
Authorization In: header
Path Parameters
NexHealth ID of the appointment type
int32Query Parameters
Used to scope the request to the specified institution
ID of the associated location, required when appointment types are location specific
int32Header Parameters
The NexHealth API version
"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 DELETE "https://example.com/appointment_types/0?subdomain=string" \ -H "Nex-Api-Version: v3.0.0"{ "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}Edit appointment type PATCH
This endpoint updates the appointment type identified by ID, within the institution specified by the subdomain parameter or a specific location within it; location_id is required in that case. Only the fields included in the request body are changed.
View appointment type appointment descriptors GET
This endpoint returns the EHR appointment descriptors linked to the appointment type for a specific ID, 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. descriptor_type is an optional filter, and when location_id is present the results are also limited to that location.