communications_unsubscribe_contact
Remove a contact from all email communications in HubSpot by specifying their contact ID and legal basis for subscription management.
Instructions
Unsubscribe a contact from all email communications
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contactId | Yes | ||
| portalSubscriptionLegalBasis | No | ||
| portalSubscriptionLegalBasisExplanation | No |
Input Schema (JSON Schema)
{
"properties": {
"contactId": {
"type": "string"
},
"portalSubscriptionLegalBasis": {
"enum": [
"LEGITIMATE_INTEREST_CLIENT",
"LEGITIMATE_INTEREST_PUB",
"PERFORMANCE_OF_CONTRACT",
"CONSENT_WITH_NOTICE",
"CONSENT_WITH_NOTICE_AND_OPT_OUT"
],
"type": "string"
},
"portalSubscriptionLegalBasisExplanation": {
"type": "string"
}
},
"required": [
"contactId"
],
"type": "object"
}