Create a contact detail Run in API Explorer
Ask AI
Body
-
Contact Detail type.
Value Description email Email phone_number Phone Number Values are
emailorphone_number. -
Make this contact type the primary contact. Will make all other contact details of the same type no longer primary.
-
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.
POST
/api/v2/contact-details
curl \
--request POST 'https://api.plannrcrm.com/api/v2/contact-details' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
--data '{"type":"email","is_primary":true,"name":"Work phone number","value":"+44751488454","account_uuids":["6548f3ed-fb8d-410b-a1ff-c9a96a94a102","f7d090ee-3b51-400a-91e7-87e9502c2cd4","534c277a-ca27-4c30-b146-c8b4d9fe2631"],"primary_account_uuids":["f148aef7-7ac5-4aae-a174-bb56bbbaac55","3facf146-0a46-4fcc-afd5-edc5a3e2fbc2","8dc0f608-2f0c-4902-81ca-5b539a35b063"]}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"type": "email",
"is_primary": true,
"name": "Work phone number",
"value": "+44751488454",
"account_uuids": [
"6548f3ed-fb8d-410b-a1ff-c9a96a94a102",
"f7d090ee-3b51-400a-91e7-87e9502c2cd4",
"534c277a-ca27-4c30-b146-c8b4d9fe2631"
],
"primary_account_uuids": [
"f148aef7-7ac5-4aae-a174-bb56bbbaac55",
"3facf146-0a46-4fcc-afd5-edc5a3e2fbc2",
"8dc0f608-2f0c-4902-81ca-5b539a35b063"
]
}
Response examples (201)
+443330903630