Update a contact detail Run in API Explorer
Ask AI
Body
-
Description of contact detail
Maximum length is
255. -
The UUIDs of the accounts who should own the contact detail. These must only be client accounts.
-
The UUIDs of the accounts who should have the contact detail as their primary contact detail.
PUT
/api/v2/contact-details/{uuid}
curl \
--request PUT 'https://api.plannrcrm.com/api/v2/contact-details/6ff8f7f6-1eb3-3525-be4a-3932c805afed' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
--data '{"name":"Work phone number","value":"+44751488454","account_uuids":["f143db90-42ac-4b57-9aae-ba32aa39f500","ec9ee77e-bec1-4815-a1ca-5c823744f758","57599dae-f4d6-432d-94b1-5d8cc2647086"],"primary_account_uuids":["c6211482-ee3f-4a1a-9025-42242433c5f1","520db96c-7530-4c76-a95e-cb40dde9d671","dabb6faf-be6a-4546-9d7c-eee2a3c6338b"]}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"name": "Work phone number",
"value": "+44751488454",
"account_uuids": [
"f143db90-42ac-4b57-9aae-ba32aa39f500",
"ec9ee77e-bec1-4815-a1ca-5c823744f758",
"57599dae-f4d6-432d-94b1-5d8cc2647086"
],
"primary_account_uuids": [
"c6211482-ee3f-4a1a-9025-42242433c5f1",
"520db96c-7530-4c76-a95e-cb40dde9d671",
"dabb6faf-be6a-4546-9d7c-eee2a3c6338b"
]
}
Response examples (200)
+443330903630