Create A Location
Create a location in the current practice scope
Return
This call returns a location object
API
POST
/V1/dispensary/practice/location
Header Parameters
- AuthorizationstringrequiredDescription
Body Parameters
- locationObjectrequired
- location_namestringrequiredDescription
- address1stringDescription
- address2stringDescription
- citystringDescription
- region_idstringDescription
- postcodestringDescription
- country_idstringDescription
- telephonestringDescription
curl
curl --location -g --request POST 'https://{{api_host}}/rest/{{scope}}/V1/practice/location' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--data-raw '{
"location": {
"location_name": "Main Office",
"city": "Chicago",
"country_id": "US",
"region_id": "IL"
}
}'200
{
"location_id": 12345,
"location_name": "Main Office",
"city": "Chicago",
"region_id": "IL",
"country_id": "US",
"address1": "",
"address2": "",
"postcode": "",
"telephone": "",
"doctors":[]
}