HubSpot
Update HubSpot Contact Phone
Changes the phone number on an existing contact, found by email.
Unverified
What the model is told
Update the phone number on an existing HubSpot contact. Use it only after the customer has given their email address and a new number, and confirm both with them first. Returns the updated contact, or a 404 if no contact has that email.
Request
PATCHhttps://api.hubapi.com/crm/v3/objects/contacts/{{email}}?idProperty=email
Headers
Content-Typeapplication/jsonAuthorizationBearer YOUR_HUBSPOT_PRIVATE_APP_TOKEN
Body
{
"properties": {
"phone": "{{phone}}"
}
}Parameters
email stringThe email address of the contact to update.phone stringThe new phone number for the contact.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "984836bc-825f-481a-a965-7ebd7eb4830d",
"type": "HTTP_REQUEST",
"label": "Update HubSpot Contact Phone",
"name": "update_hubspot_contact_phone",
"customName": false,
"description": "Update the phone number on an existing HubSpot contact. Use it only after the customer has given their email address and a new number, and confirm both with them first. Returns the updated contact, or a 404 if no contact has that email.",
"parameters": [
{
"name": "email",
"type": "string",
"description": "The email address of the contact to update."
},
{
"name": "phone",
"type": "string",
"description": "The new phone number for the contact."
}
],
"config": {
"endpoint": {
"method": "PATCH",
"url": "https://api.hubapi.com/crm/v3/objects/contacts/{{email}}?idProperty=email"
},
"headers": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "Bearer YOUR_HUBSPOT_PRIVATE_APP_TOKEN"
}
],
"body": "{\n \"properties\": {\n \"phone\": \"{{phone}}\"\n }\n}",
"timeout": null
}
}
}IDs are regenerated on every copy.