CreateAddress
POST
/api/addresses/create/
Location/Address
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/addresses/create/' \
--form 'point=""' \
--form 'description=""' \
--form 'location_type=""'
Response Response Example
201 - Example 1
{
"id": 0,
"description": "string",
"location_type": "HOME",
"point": {
"type": "Point",
"coordinates": [
12.9721,
77.5933
]
},
"map_description": "string",
"map_image": "http://example.com"
}
Request
Body Params multipart/form-data
point
object
Location Point
type
enum<string>
optional
Allowed value:
Point
coordinates
array[number <float>]
optional
>= 2 items<= 3 items
Example:
[12.9721,77.5933]
description
string
required
>= 1 characters
map_description
string
optional
>= 1 characters
location_type
enum<string>
required
HOME
- HomeWORK
- WorkAllowed values:
HOMEWORK
map_image
file
optional