UpdateAddress
PATCH
/api/addresses/{id}/update/
Location/Address
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/api/addresses//update/'
Response Response Example
200 - 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
Path Params
id
integer
required
Body Params application/x-www-form-urlencoded
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
optional
>= 1 characters
map_description
string
optional
>= 1 characters
location_type
enum<string>
optional
HOME
- HomeWORK
- WorkAllowed values:
HOMEWORK
map_image
file
optional