REST API
Locations & Doctors
Update A Location
update data for a specific location return this call returns a fully expanded location object with the updated data { "tab" "examples", "url" "/v1/dispensary/practice/location/\ location id", "name" "api", "method" "put", "request" { "pathparameters" \[ { "kind" "required", "name" "location id", "type" "integer", "children" \[], "description" "the location id to be updated" } ], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "children" \[], "description" "the access token" } ], "bodydataparameters" \[ { "kind" "required", "name" "location", "type" "object", "children" \[ { "kind" "optional", "name" "location name", "type" "string", "description" "human readable form of the location used for visual identification in the ui" }, { "kind" "optional", "name" "address1", "type" "string", "description" "line 1 of the street address" }, { "kind" "optional", "name" "address2", "type" "string", "description" "line 2 of the street address" }, { "kind" "optional", "name" "city", "type" "string", "description" "name of the city" }, { "kind" "optional", "name" "region id", "type" "string", "description" "2 letter code for the state" }, { "kind" "optional", "name" "postcode", "type" "string", "description" "the postal code / zip" }, { "kind" "optional", "name" "country id", "type" "string", "description" "2 letter code for the country" }, { "kind" "optional", "name" "telephone", "type" "string", "description" "the main telephone for the location" } ], "description" "" } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "st7x5ecla7vjy6twnarmd", "code" "{\n \\"location id\\" 12345,\n \\"location name\\" \\"chicago office\\",\n \\"city\\" \\"chicago\\",\n \\"region id\\" \\"il\\",\n \\"country id\\" \\"us\\",\n \\"address1\\" \\"\\",\n \\"address2\\" \\"\\",\n \\"postcode\\" \\"\\",\n \\"telephone\\" \\"\\",\n \\"doctors\\" \[{\n \\"doctor id\\" 321,\n \\"doctor name\\" \\"dr wasserman\\",\n \\"first name\\" \\"jim\\",\n \\"last name\\" \\"wasserman\\",\n \\"telephone\\" \\"\\"\n }]\n}", "language" "200", "customlabel" "" } ], "selectedlanguageid" "st7x5ecla7vjy6twnarmd" }, "examples" { "languages" \[ { "id" "lhvvurblv3o1djzkyhqcq", "code" "curl location g request put 'https //{{api host}}/rest/{{scope}}/v1/practice/location/12345' \\\\\n header 'content type application/json' \\\\\n header 'authorization bearer {{access token}}' \\\\\n data raw '{\n \\"location\\" {\n \\"location name\\" \\"chicago office\\"\n }\n}'", "language" "curl", "customlabel" "" } ], "selectedlanguageid" "lhvvurblv3o1djzkyhqcq" }, "description" "", "currentnewparameter" { "label" "path parameter", "value" "pathparameters" } }