Delete a Saved Location
Delete an existing Saved Location.
Authorizations
AuthorizationstringRequired
Enter your PredictHQ API key. The Bearer prefix is added automatically.
When calling the API directly, send: 'Authorization: Bearer <YOUR_API_KEY>' as documented at https://docs.predicthq.com/authentication
Path parameters
location_idstringRequired
An existing Saved Location ID.
Responses
204
Successful Response
422
Validation Error
application/json
delete
/v1/saved-locations/{location_id}DELETE /v1/saved-locations/{location_id} HTTP/1.1
Host: api.predicthq.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Examples
curl -X DELETE "https://api.predicthq.com/v1/saved-locations/$LOCATION_ID" \
-H "Authorization: Bearer $ACCESS_TOKEN"import requests
response = requests.delete(
url="https://api.predicthq.com/v1/saved-locations/$LOCATION_ID",
headers={
"Authorization": "Bearer $ACCESS_TOKEN"
}
)
print(response.status_code)OpenAPI Spec
The OpenAPI spec for Saved Locations API can be found here.
Guides
Below are some guides relevant to this API:
Last updated
Was this helpful?