REST API
Locations & Doctors
Create A Doctor
create a doctor in the current practice scope return this call returns a doctor object { "tab" "examples", "url" "/v1/dispensary/practice/doctor", "name" "api", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "children" \[], "description" "the access token" } ], "bodydataparameters" \[ { "kind" "required", "name" "doctor", "type" "object", "children" \[ { "kind" "required", "name" "doctor name", "type" "string", "description" "human readable form of the doctor used for visual identification in the ui" }, { "kind" "required", "name" "email", "type" "string", "description" "doctor's email address" }, { "kind" "optional", "name" "first name", "type" "string", "description" "doctor's actual first name" }, { "kind" "optional", "name" "last name", "type" "string", "description" "doctor's actual last name" }, { "kind" "optional", "name" "telephone", "type" "string", "description" "doctor's telephone number " } ], "description" "" } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "st7x5ecla7vjy6twnarmd", "code" "{\n \\"doctor id\\" 12345,\n \\"doctor name\\" \\"dr j wasserman\\",\n \\"email\\" \\"drjwasser\@gmail com\\",\n \\"telephone\\" \\"+18882347654\\",\n \\"locations\\" \[]\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 \\"doctor\\" {\n \\"doctor name\\" \\"dr j wassermann\\",\n \\"email\\" \\"drjwasser\@gmail com\\",\n \\"telephone\\" \\"+18882347654\\"\n }\n}'", "language" "curl", "customlabel" "" } ], "selectedlanguageid" "lhvvurblv3o1djzkyhqcq" }, "description" "", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } }