REST API
Locations & Doctors
Create A Location
create a location in the current practice scope return this call returns a location object { "tab" "examples", "url" "/v1/dispensary/practice/location", "name" "api", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "children" \[], "description" "the access token" } ], "bodydataparameters" \[ { "kind" "required", "name" "location", "type" "object", "children" \[ { "kind" "required", "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\\" \\"main office\\",\n \\"city\\" \\"chicago\\",\n \\"region id\\" \\"il\\",\n \\"country id\\" \\"us\\",\n \\"address1\\" \\"\\",\n \\"address2\\" \\"\\",\n \\"postcode\\" \\"\\",\n \\"telephone\\" \\"\\",\n \\"doctors\\" \[]\n}", "language" "200", "customlabel" "" } ], "selectedlanguageid" "st7x5ecla7vjy6twnarmd" }, "examples" { "languages" \[ { "id" "lhvvurblv3o1djzkyhqcq", "code" "curl location g request post 'https //{{api host}}/rest/{{scope}}/v1/practice/location' \\\\\n header 'content type application/json' \\\\\n header 'authorization bearer {{access token}}' \\\\\n data raw '{\n \\"location\\" {\n \\"location name\\" \\"main office\\",\n \\"city\\" \\"chicago\\",\n \\"country id\\" \\"us\\",\n \\"region id\\" \\"il\\"\n }\n}'", "language" "curl", "customlabel" "" } ], "selectedlanguageid" "lhvvurblv3o1djzkyhqcq" }, "description" "", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } }