Update a contact
curl --request PATCH \
--url https://www.presolve.com/api/v1/contacts/{contactId} \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"namePrefix": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"entityName": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"notes": "<string>",
"isCommercial": true,
"tags": [
"<string>"
]
}
'const options = {
method: 'PATCH',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
namePrefix: '<string>',
firstName: '<string>',
lastName: '<string>',
entityName: '<string>',
email: 'jsmith@example.com',
phone: '<string>',
fax: '<string>',
address: '<string>',
city: '<string>',
state: '<string>',
zipCode: '<string>',
notes: '<string>',
isCommercial: true,
tags: ['<string>']
})
};
fetch('https://www.presolve.com/api/v1/contacts/{contactId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.presolve.com/api/v1/contacts/{contactId}"
payload = {
"namePrefix": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"entityName": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"notes": "<string>",
"isCommercial": True,
"tags": ["<string>"]
}
headers = {
"X-Idempotency-Key": "<x-idempotency-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"success": true
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}Contacts
Update a contact
Requires the contacts:write scope. Mutations require an X-Idempotency-Key header (responses are stored for replay; reusing a key with a different request returns 409 IDEMPOTENCY_CONFLICT). Rate tier: write.
PATCH
/
api
/
v1
/
contacts
/
{contactId}
Update a contact
curl --request PATCH \
--url https://www.presolve.com/api/v1/contacts/{contactId} \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"namePrefix": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"entityName": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"notes": "<string>",
"isCommercial": true,
"tags": [
"<string>"
]
}
'const options = {
method: 'PATCH',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
namePrefix: '<string>',
firstName: '<string>',
lastName: '<string>',
entityName: '<string>',
email: 'jsmith@example.com',
phone: '<string>',
fax: '<string>',
address: '<string>',
city: '<string>',
state: '<string>',
zipCode: '<string>',
notes: '<string>',
isCommercial: true,
tags: ['<string>']
})
};
fetch('https://www.presolve.com/api/v1/contacts/{contactId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.presolve.com/api/v1/contacts/{contactId}"
payload = {
"namePrefix": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"entityName": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"notes": "<string>",
"isCommercial": True,
"tags": ["<string>"]
}
headers = {
"X-Idempotency-Key": "<x-idempotency-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"success": true
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}Authorizations
Org-issued integration API key (service account credential). The plaintext secret is shown once at creation.
Headers
Stable caller-chosen key (max 200 chars) making the mutation safely retryable.
Maximum string length:
200Path Parameters
Contact id
Body
application/json
Available options:
medical_provider, insurance_carrier, referral_partner, vendor, other, null Required string length:
1 - 50Required string length:
1 - 200Required string length:
1 - 200Required string length:
1 - 300Maximum string length:
320Required string length:
1 - 50Required string length:
1 - 50Required string length:
1 - 500Required string length:
1 - 120Required string length:
1 - 50Required string length:
1 - 20Maximum string length:
5000Maximum array length:
50Required string length:
1 - 100