Update a Saved Location
Update (replace) an existing Saved Location.
Request
HTTP Request
PUT https://api.predicthq.com/v1/saved-locations/
Path Parameters
Parameter
Description
location_id
An existing Saved Location ID.
Request Headers
Header
Value
Content-Type
application/json
Request Body
Response
If successful, the HTTP response code will be 204 No Content
.
Examples
curl --location --request PUT 'https://api.predicthq.com/v1/saved-locations/5BcRstnNPjXl-fiB_0TQJg' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer TOKEN' \
--data '{
"name": "S Las Vegas Blvd, Las Vegas (NV), US",
"labels": [],
"geojson": {
"type": "Feature",
"properties": {
"radius": 1,
"radius_unit": "mi"
},
"geometry": {
"type": "Point",
"coordinates": [
-115.1728484,
36.1147065
]
}
}
}'
Guides
Below are some guides relevant to this API:
Last updated
Was this helpful?