JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
API Documentation Admin Webapp
API Documentation
MEDPULSE DATABASE [DRAFT]
More
Share
Explore
VISIT
VISIT APPROVE
PUT /visit/approve/:id
Request
{
"approval"
:
enum
[
"approved"
,
"rejected"
]
,
"reason"
:
"<<reason_string>>"
}
Response (Success)
{
"status"
:
true
,
"code"
:
"VISIT_STATUS_UPDATE_SUCCESS"
,
"payload"
:
{
"id"
:
"<<visit_id>>"
,
"created_at"
:
"<<date_time_string>>"
,
"updated_at"
:
"<<date_time_string>>"
}
}
Response (Error)
{
"status"
:
false
,
"code"
:
"VISIT_STATUS_UPDATE_FAILED"
,
"message"
:
"Bad request"
}
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.