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":["44d539b5-ae25-4001-84aa-a6981e0d9c09","5920d182-8f18-472a-97ab-c0188ad37b3a","766ce1cb-3d20-43c7-8aad-49d1962632d6"],"primary_account_uuids":["ed435912-6ca8-4346-b97a-bf9470c565e6","98025d92-b518-4855-8deb-6e0f07b28816","20eae65b-f918-4f31-a905-58c49dcd4cf4"]}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"name": "Work phone number",
"value": "+44751488454",
"account_uuids": [
"44d539b5-ae25-4001-84aa-a6981e0d9c09",
"5920d182-8f18-472a-97ab-c0188ad37b3a",
"766ce1cb-3d20-43c7-8aad-49d1962632d6"
],
"primary_account_uuids": [
"ed435912-6ca8-4346-b97a-bf9470c565e6",
"98025d92-b518-4855-8deb-6e0f07b28816",
"20eae65b-f918-4f31-a905-58c49dcd4cf4"
]
}
Response examples (200)
+443330903630