Create Walk In

Creates a walk in with the given attributes.

POST /directory/v1/walk-ins

Request Body Parameters

You can see a breakdown of the different supported attributes for walk ins here

The required attributes to create a walk-in are :

The required relationships to create a walk-in are :

note

At least one booking detail must be specified upon creation.

Examples

Create Walk In

curl -X POST "https://api.clinia.ca/directory/v1/walk-ins" \
-H "Content-Type: application/vnd.api+json"
--data-binary '{
"data": {
"type": "walk-ins"
"attributes": {
"opening-hours": [
{
"day": 1,
"intervals": [
{
"start": "08:00:00",
"end": "17:00:00"
}
]
}
],
"booking-details": [
{
"phone": {
"number": "0980892038",
"type": "MAIN"
},
"online-booking": {
"url": "http://holl.bom"
},
"appointment-opening-day": "ANY_DAY",
"appointment-patient-access": "EXISTING_PATIENT",
"note": "This is an important note."
}
]
},
"relationships": {
"health-facility": {
"data": {
"type": "health-facilities",
"id": "e46f4c7c-9558-49dc-b006-144b8b7bcd75"
}
}
},
}
}'
{
"data": {
"attributes": {
"created-at": "2020-10-20T17:25:00.4008079Z",
"updated-at": "2020-10-20T17:25:00.4008079Z",
"opening-hours": [
{
"day": 1,
"intervals": [
{
"start": "08:00:00",
"end": "17:00:00"
}
]
}
],
"booking-details": [
{
"id": "booking_detail-26b37a75-0780-42b6-a470-765d15122ef0",
"phone": {
"id": "phone-4c7101fc-3b95-4058-bcc4-48577848b617",
"number": "0980892038",
"type": "MAIN"
},
"online-booking": {
"id": "online_booking-60b7256b-afc2-4622-982b-80f7a3acf19d",
"url": "http://holl.bom"
},
"appointment-opening-day": "ANY_DAY",
"appointment-patient-access": "EXISTING_PATIENT",
"note": "This is an important note."
}
]
},
"relationships": {
"health-facility": {
"links": {
"self": "http://localhost:7200/v1/walk-ins/12bb0641-09d6-4e09-9aab-611ab09b2668/relationships/health-facility",
"related": "http://localhost:7200/v1/walk-ins/12bb0641-09d6-4e09-9aab-611ab09b2668/health-facility"
},
"data": {
"type": "health-facilities",
"id": "e46f4c7c-9558-49dc-b006-144b8b7bcd75"
}
}
},
"type": "walk-ins",
"id": "12bb0641-09d6-4e09-9aab-611ab09b2668"
}
}