Update facility routing config
curl --request PATCH \
--url https://www.presolve.com/api/v1/medical-facilities/{facilityId} \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"expectedVersion": 2,
"recordsNeeded": true,
"billsNeeded": true,
"recordsDepartmentInfo": {
"contactPerson": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"notes": "<string>"
},
"billingDepartmentInfo": {
"contactPerson": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"notes": "<string>"
}
}
'const options = {
method: 'PATCH',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
expectedVersion: 2,
recordsNeeded: true,
billsNeeded: true,
recordsDepartmentInfo: {
contactPerson: '<string>',
email: 'jsmith@example.com',
phone: '<string>',
fax: '<string>',
notes: '<string>'
},
billingDepartmentInfo: {
contactPerson: '<string>',
email: 'jsmith@example.com',
phone: '<string>',
fax: '<string>',
notes: '<string>'
}
})
};
fetch('https://www.presolve.com/api/v1/medical-facilities/{facilityId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.presolve.com/api/v1/medical-facilities/{facilityId}"
payload = {
"expectedVersion": 2,
"recordsNeeded": True,
"billsNeeded": True,
"recordsDepartmentInfo": {
"contactPerson": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"notes": "<string>"
},
"billingDepartmentInfo": {
"contactPerson": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"notes": "<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>"
}Medical
Update facility routing config
Identity fields are read-only here — writable only via the contact resource.
Requires the medical: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: sensitive.
PATCH
/
api
/
v1
/
medical-facilities
/
{facilityId}
Update facility routing config
curl --request PATCH \
--url https://www.presolve.com/api/v1/medical-facilities/{facilityId} \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"expectedVersion": 2,
"recordsNeeded": true,
"billsNeeded": true,
"recordsDepartmentInfo": {
"contactPerson": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"notes": "<string>"
},
"billingDepartmentInfo": {
"contactPerson": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"notes": "<string>"
}
}
'const options = {
method: 'PATCH',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
expectedVersion: 2,
recordsNeeded: true,
billsNeeded: true,
recordsDepartmentInfo: {
contactPerson: '<string>',
email: 'jsmith@example.com',
phone: '<string>',
fax: '<string>',
notes: '<string>'
},
billingDepartmentInfo: {
contactPerson: '<string>',
email: 'jsmith@example.com',
phone: '<string>',
fax: '<string>',
notes: '<string>'
}
})
};
fetch('https://www.presolve.com/api/v1/medical-facilities/{facilityId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.presolve.com/api/v1/medical-facilities/{facilityId}"
payload = {
"expectedVersion": 2,
"recordsNeeded": True,
"billsNeeded": True,
"recordsDepartmentInfo": {
"contactPerson": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"notes": "<string>"
},
"billingDepartmentInfo": {
"contactPerson": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"fax": "<string>",
"notes": "<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
Medical facility binding id
Body
application/json
Required range:
x >= 1Available options:
hospital, clinic, imaging_center, physical_therapy, pharmacy, laboratory, specialist_office, emergency_room, urgent_care, chiropractor, other, null Show child attributes
Show child attributes
Show child attributes
Show child attributes