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 CREATE
POST /visit/create
Request
{
"to"
:
"<<contact_id>>"
,
"datetime"
:
"<<ISO_datetime_string>>"
,
"loc_coordinate"
:
[
20.0024
,
73.7945
]
,
"loc_address"
:
"<<address_line_1>>"
,
"loc_city"
:
"<<address_city>>"
,
"loc_pincode"
:
"<<address_pincode>>"
,
"description"
:
"<<extra_note>>"
,
"created_by"
:
{
"id"
:
"<<employee_id>>"
,
"name"
:
"<<string>>"
,
}
}
Response (Success)
{
"status"
:
true
,
"code"
:
"VISIT_CREATE_SUCCESS"
,
"payload"
:
{
"id"
:
"<<visit_id>>"
,
"created_at"
:
"<<date>>"
,
}
}
Response (Error)
{
"status"
:
false
,
"code"
:
"VISIT_CREATE_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.