Update contact
Required Scopes:
contacts:write
Path Parameters
- Type: stringFormat: uuiduidrequired
The
uidof the contact
Body·
- Type: stringemailmin length:1Format: email
The primary email for the contact.
- Type: stringnamemin length:1max length:60
The contact's display name.
- Type: string | nullphonemax length:11
An SMS-enabled phone number for the contact. Must be a US or Canadian-based number.
- Type: string | nullFormat: emailsecondary
_email A secondary email for the contact. Must be different from email.
Responses
- application/json
- application/json
- application/json
Request Example for patch/v1/contacts/{uid}/
curl https://api.foundation.dev.trusspayments.com/v1/contacts/123e4567-e89b-12d3-a456-426614174000/ \
--request PATCH \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"name": "",
"email": "",
"secondary_email": null,
"phone": null
}'
{
"uid": "123e4567-e89b-12d3-a456-426614174000",
"name": "string",
"email": null,
"secondary_email": null,
"phone": null
}
