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
CONTACT
CONTACT CREATE
POST /contact/create
Request
{
"name"
:
"<<name_string>>"
,
//REQUIRED
"email"
:
"<<email>>"
,
// REQUIRED
"mobile"
:
"<<phone>>"
,
// REQUIRED
"type"
:
enum
[
"doctor"
,
"pharmacy"
,
"hospital"
]
,
// REQUIRED
"registration"
:
"<<registration_code_string>>"
,
// REQUIRED
"address"
:
{
"street"
:
"<<address_street>>"
,
// REQUIRED
"locality"
:
"<<address_locality>"
,
// REQUIRED
"city"
:
"<<address_city>"
,
// REQUIRED
"pincode"
:
"<<pincode>>"
,
// REQUIRED
"latitude"
:
"<<map_pin_latitude>>"
,
// REQUIRED
"longitude"
:
"<<map_pin_longitude>>"
// REQUIRED
}
,
"created_by"
:
"<<employee_id>>"
,
"image"
:
"<<base64_string>>"
,
"about"
:
"<<desc_contact_string>>"
,
}
Response (Success)
{
"status"
:
true
,
"code"
:
"CONTACT_CREATE_SUCCESS"
,
"payload"
:
{
"id"
:
"<<contact_id>>"
,
"created_at"
:
"<<date_time_string>>"
,
}
}
Response (Error)
{
"status"
:
false
,
"code"
:
"CONTACT_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.