API reference//
API Reference
/- Update a Location
List Locations
Get a Location
Archive a Location
Update a Location
Update an existing location.
Security
apiKeyAuth and practiceGroupId
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/locations/{id}
- Staginghttps://api.staging.htech.app/v1/locations/{id}
- Productionhttps://api.herohealth.net/v1/locations/{id}
curl -i -X PATCH \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/locations/{id}' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"name": "string",
"about": "string",
"email": "user@example.com",
"phone_number": "string",
"map_url": "http://example.com",
"latitude": 0,
"longitude": 0,
"no_availability_text": "string",
"address": {
"line_1": "string",
"line_2": "string",
"line_3": "string",
"town": "string",
"county": "string",
"postcode": "string"
}
}'Ok
Response
{ "id": "string", "name": "string", "partner_site_name": "string", "about": "string", "email": "string", "phone_number": "string", "map_url": "string", "latitude": "string", "longitude": "string", "no_availability_text": "string", "address": { "line_1": "string", "line_2": "string", "line_3": "string", "town": "string", "county": "string", "postcode": "string" }, "archived_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }