curl --request PUT \
--url https://api.decodahealth.com/v1/patient/update/{patient_id} \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TENANT: <tenant>' \
--data '{
"address": "<string>",
"addressLineTwo": "<string>",
"addressValid": true,
"allergies": [
"<string>"
],
"city": "<string>",
"country": "<string>",
"dateOfBirth": "2023-12-25",
"email": "<string>",
"externalUserId": "<string>",
"familyHistory": [
"<string>"
],
"firstName": "<string>",
"gender": "MALE",
"lastName": "<string>",
"medicalHistory": [
"<string>"
],
"medications": [
"<string>"
],
"meta": {},
"optedOutOfSms": true,
"phoneNumber": "<string>",
"prescriptions": [
"<string>"
],
"state": "<string>",
"type": "<string>",
"updatedDate": "2023-11-07T05:31:56Z",
"zipCode": "<string>"
}'
{
"address": "<string>",
"addressLineTwo": "<string>",
"addressValid": true,
"allergies": [
"<string>"
],
"city": "<string>",
"country": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"dateOfBirth": "2023-12-25",
"email": "<string>",
"externalUserId": "<string>",
"familyHistory": [
"<string>"
],
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>",
"medicalHistory": [
"<string>"
],
"medications": [
"<string>"
],
"meta": {},
"optedOutOfSms": false,
"phoneNumber": "<string>",
"prescriptions": [
"<string>"
],
"state": "<string>",
"type": "<string>",
"zipCode": "<string>"
}
Update an existing Patient
.
curl --request PUT \
--url https://api.decodahealth.com/v1/patient/update/{patient_id} \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TENANT: <tenant>' \
--data '{
"address": "<string>",
"addressLineTwo": "<string>",
"addressValid": true,
"allergies": [
"<string>"
],
"city": "<string>",
"country": "<string>",
"dateOfBirth": "2023-12-25",
"email": "<string>",
"externalUserId": "<string>",
"familyHistory": [
"<string>"
],
"firstName": "<string>",
"gender": "MALE",
"lastName": "<string>",
"medicalHistory": [
"<string>"
],
"medications": [
"<string>"
],
"meta": {},
"optedOutOfSms": true,
"phoneNumber": "<string>",
"prescriptions": [
"<string>"
],
"state": "<string>",
"type": "<string>",
"updatedDate": "2023-11-07T05:31:56Z",
"zipCode": "<string>"
}'
{
"address": "<string>",
"addressLineTwo": "<string>",
"addressValid": true,
"allergies": [
"<string>"
],
"city": "<string>",
"country": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"dateOfBirth": "2023-12-25",
"email": "<string>",
"externalUserId": "<string>",
"familyHistory": [
"<string>"
],
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>",
"medicalHistory": [
"<string>"
],
"medications": [
"<string>"
],
"meta": {},
"optedOutOfSms": false,
"phoneNumber": "<string>",
"prescriptions": [
"<string>"
],
"state": "<string>",
"type": "<string>",
"zipCode": "<string>"
}
The tenant you are making this request on behalf of
Your api key
Successful Response
The response is of type object
.