UpdateSubscriptionPreferences
Updates the subscription preferences for a contact in HubSpot.
Input
| Name | Type | Description |
| String | The email address of the contact to update subscription preferences. | |
| SubscriptionTypeId | Integer | The unique identifier of the subscription. |
| Status | String | The subscription status state. Valid values: SUBSCRIBED, UNSUBSCRIBED, NOT_SPECIFIED. |
| LegalBasis | String | The legal basis for processing contact data. Example: LEGITIMATE_INTEREST_PQL, NON_GDPR, LEGITIMATE_INTEREST_OTHER, LEGITIMATE_INTEREST_CLIENT, PROCESS_AND_STORE, PERFORMANCE_OF_CONTRACT, CONSENT_WITH_NOTICE. |
| LegalBasisExplanation | String | Explanation of the legal basis for the subscription status change. |
| Channel | String | The communication channel for the subscription. Example: EMAIL.
The default value is EMAIL. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Indicates whether the subscription update was successful. |
| ErrorCode | Integer | If the procedure fails, displays the corresponding error code. |
| ErrorMessage | String | If the procedure fails, provides a detailed error message. |