v1
latestOpenAPI 3.0.02026-07-2447166133.5 KBContacts
Update a contact
This operation updates a specific contact by id.
Fields provided in the input object will be updated, omitted fields (null) will be unchanged.
patch/contacts/{contactId}
Path parameters
contactIdstring required
The id of the contact to update
Headers
s-idempotency-keystring
A unique value generated by the client used to recognize subsequent retries of the same request. Idempotency keys can be up to 255 characters long.
Request body
Example request
{
"category": "patient",
"companyName": "Walgreens",
"dateOfBirth": "2000-01-30",
"emailAddresses": [
{
"label": "Work",
"value": "contact@example.com"
}
],
"familyName": "Smith",
"faxNumbers": [
{
"label": "Work"
}
],
"gender": "unknown",
"genderDetail": "Non-binary",
"givenName": "Joe",
"middleName": "William",
"organizationContactFields": [
{
"id": "managedCustomField_0E5QDGJC03000",
"value": "CVS"
}
],
"phoneNumbers": [
{
"label": "Work"
}
],
"pronouns": "he/him",
"tagIds": [
"tag_0E5QDGJC03000"
]
}Response
ok response
Example response
{
"apiURL": "https://api.sprucehealth.com/contact/entity_0E5QDGJC03000",
"appURL": "https://app.sprucehealth.com/org/entity_0D4QABCC06000/contact/entity_0E5QDGJC03000",
"canDelete": true,
"canEdit": true,
"category": "patient",
"companyName": "Walgreens",
"created": "2021-01-30T08:30:00Z",
"customContactFields": [
{
"id": "entityCustomField_0E5QDGJC03000",
"name": "Preferred Pharmacy",
"value": "CVS"
}
],
"dateOfBirth": "2000-01-30",
"displayName": "Joe William Smith",
"emailAddresses": [
{
"id": "entityContact_26RRC7PQ6JG00",
"label": "Work",
"value": "contact@example.com"
}
],
"familyName": "Smith",
"faxNumbers": [
{
"displayValue": "(222) 555-0000",
"id": "entityContact_26RRC7PQ6JG00",
"label": "Work"
}
],
"gender": "unknown",
"genderDetail": "Non-binary",
"givenName": "Joe",
"hasAccount": true,
"hasPendingInvite": true,
"id": "entity_0E5QDGJC03000",
"integrationLinks": [
{
"contactId": "entity_0E5QDGJC03000",
"externalId": "elation_140797386655555",
"type": "elation"
}
],
"middleName": "William",
"organizationContactFields": [
{
"id": "managedCustomField_0E5QDGJC03000",
"name": "Preferred Pharmacy",
"value": "CVS"
}
],
"phoneNumbers": [
{
"displayValue": "(222) 555-0000",
"id": "entityContact_26RRC7PQ6JG00",
"label": "Work"
}
],
"pronouns": "he/him",
"tags": [
{
"id": "tag_0E5QDGJC03000",
"value": "Smith"
}
]
}