Skip to main content
PATCH
/
patients
/
{id}
Update Patient
curl --request PATCH \
  --url https://api.usecobalt.com/v1/patients/{id} \
  --header 'Content-Type: application/json' \
  --header 'access_token: <api-key>' \
  --header 'client_id: <api-key>' \
  --header 'client_secret: <api-key>' \
  --data '
{
  "address_city": "<string>",
  "address_state": "<string>",
  "address_street": "<string>",
  "address_zip": "<string>",
  "cell_phone": "<string>",
  "dob": "2023-12-25",
  "email": "<string>",
  "first_name": "<string>",
  "insurance_name": "<string>",
  "insurance_sequence": "primary",
  "insurance_subscriber_number": "<string>",
  "last_name": "<string>",
  "phone": "<string>",
  "referred_to_provider_id": "<string>",
  "referring_provider_first_name": "<string>",
  "referring_provider_last_name": "<string>",
  "referring_provider_id": "<string>",
  "sex": "male"
}
'
{
  "success": true,
  "message": "<string>"
}
Use the Cobalt id in the URL path. The {id} parameter should be the Cobalt patient ID returned from API responses or GET endpoints, not the MRN or EHR ID.

Example Request

curl -X PATCH https://api.usecobalt.com/v1/patients/414421 \
-H 'Content-Type: application/json' \
-H 'client_id: ci_live_198908HJDKJSH98789OHKJL' \
-H 'client_secret: cs_live_9827hofdsklOYYHJLJh' \
-H 'access_token: 493JKLHIU98789hLKH9HHJH' \
-d '{
    "phone": "5559876543",
    "insurance_name": "Aetna",
    "insurance_subscriber_number": "ABC987654321"
}'

Example Response

{
    "success": true,
    "message": "Patient updated successfully"
}
Only include the fields you want to update in the request body. Omitted fields will remain unchanged.

Authorizations

client_id
string
header
required
client_secret
string
header
required
access_token
string
header
required

Path Parameters

id
string
required

The patient's ID

Body

application/json
address_city
string
address_state
string
address_street
string
address_zip
string
cell_phone
string
dob
string<date>
email
string

Patient email address

first_name
string
insurance_name
string
insurance_sequence
enum<string>
Available options:
primary,
secondary,
tertiary
insurance_subscriber_number
string
last_name
string
phone
string
referred_to_provider_id
string

The ehr_id of the provider this patient is being referred to (rendering provider). Use the ehr_id from GET /v1/providers

referring_provider_first_name
string

First name of the referring provider

referring_provider_last_name
string

Last name of the referring provider

referring_provider_id
string

The id of a referring provider from GET /v1/referring-providers (UUID without dashes). Can be used instead of referring_provider_first_name and referring_provider_last_name. Currently only supported for eClinicalWorks.

sex
enum<string>
Available options:
male,
female,
unknown

Response

200 - application/json

Successful response

success
boolean
message
string