---
title: Update A Doctor
slug: update-a-doctor
icon: {"faIcon":"fa-solid fa-code"}
createdAt: 2023-01-26T14:46:57.000Z
---

Update a doctor listing

## Return

This call returns a doctor object

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "/V1/dispensary/practice/doctor/:doctor_id",
  "name": "API",
  "method": "PUT",
  "request": {
    "pathParameters": [
      {
        "kind": "required",
        "name": "doctor_id",
        "type": "string",
        "children": [],
        "description": "The doctor_id to updated."
      }
    ],
    "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": "Path Parameter",
    "value": "pathParameters"
  },
  "autoGeneratedAnchorSlug": "api",
  "legacyHash": "iX0nZCxFb6SCjj5lbCMLq"
}
```
:::

