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":["371247c7-775c-47fe-b4f5-34611f517fb2","bfc2486a-a474-4d19-876f-ccb2917d95f6","c419590b-2174-48f8-beff-24ddc34b19db"],"primary_account_uuids":["911823f1-42e7-4fda-95fa-222d8b1a0d42","34665a55-041e-4e64-81ae-21da62177bab","914069c3-2f9b-488c-965e-0946e9b4f176"]}'
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": [
"371247c7-775c-47fe-b4f5-34611f517fb2",
"bfc2486a-a474-4d19-876f-ccb2917d95f6",
"c419590b-2174-48f8-beff-24ddc34b19db"
],
"primary_account_uuids": [
"911823f1-42e7-4fda-95fa-222d8b1a0d42",
"34665a55-041e-4e64-81ae-21da62177bab",
"914069c3-2f9b-488c-965e-0946e9b4f176"
]
}
Response examples (201)
+443330903630