Update A Location
Update data for a specific location
Return
This call returns a fully expanded location object with the updated data.
API
PUT
/V1/dispensary/practice/location/:location_id
Path Parameters
- location_idIntegerrequiredDescription
Header Parameters
- AuthorizationstringrequiredDescription
Body Parameters
- locationObjectrequired
- location_namestringDescription
- address1stringDescription
- address2stringDescription
- citystringDescription
- region_idstringDescription
- postcodestringDescription
- country_idstringDescription
- telephonestringDescription
curl
curl --location -g --request PUT 'https://{{api_host}}/rest/{{scope}}/V1/practice/location/12345' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--data-raw '{
"location": {
"location_name": "Chicago Office"
}
}'200
{
"location_id": 12345,
"location_name": "Chicago Office",
"city": "Chicago",
"region_id": "IL",
"country_id": "US",
"address1": "",
"address2": "",
"postcode": "",
"telephone": "",
"doctors":[{
"doctor_id": 321,
"doctor_name": "Dr. Wasserman",
"first_name": "Jim",
"last_name": "Wasserman",
"telephone":""
}]
}