Create a contact detail Run in API Explorer
Ask AI
Body
-
Valid types: email and phone_number
Value Description email Email phone_number Phone Number Values are
emailorphone_number. -
Description of contact detail
-
Value of contact detail. If the type is phone number, the format defaults to GB. You can provide an array
["country" => "AU", "number" => "+61 2 3456 7890"]if you want to use a different format. -
Make this contact type the primary contact. Will make all other contact details of the same type no longer primary.
POST
/api/v1/account/{account_uuid}/contact-detail
curl \
--request POST 'https://api.plannrcrm.com/api/v1/account/6ff8f7f6-1eb3-3525-be4a-3932c805afed/contact-detail' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
--data '{"type":"email","name":"Work phone number","value":"+443330903630","primary":true}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"type": "email",
"name": "Work phone number",
"value": "+443330903630",
"primary": true
}
Response examples (200)
+443330903630