Create Practice

Creates a practice with the given attributes.

POST /directory/v1/practices

Request Body Parameters

You can see a breakdown of the different supported attributes for practices here.

The required relationships to create a practice are :

Examples

Create Practice

curl -X POST "https://api.clinia.ca/directory/v1/practices" \
-H "Content-Type: application/vnd.api+json"
--data-binary '{
"data": {
"relationships": {
"practitioner": {
"data": {
"type": "practitioners",
"id": "1d6319c1-8510-4803-bbfc-52e5c1303845"
}
},
"health-facility": {
"data": {
"type": "health-facilities",
"id": "26847c49-1542-4d73-8aaf-0ba4a362e7a2"
}
}
},
"type": "practices"
}
}'
{
"data": {
"attributes": {
"created-at": "2020-11-03T21:31:17.9750001Z",
"updated-at": "2020-11-03T21:31:17.9750001Z"
},
"relationships": {
"health-facility": {
"data": {
"type": "health-facilities",
"id": "26847c49-1542-4d73-8aaf-0ba4a362e7a2"
}
},
"practitioner": {
"data": {
"type": "practitioners",
"id": "1d6319c1-8510-4803-bbfc-52e5c1303845"
}
}
},
"type": "practices",
"id": "b70384e8-d557-4b2d-b466-2f624c923a0e"
}
}