EnableSubscriptionPreferences
Subscribes the contact to the specified subscription type. Along with this, HubSpot enables all available subscription types for the specified contact with the default status of NOT_SPECIFIED.
Input
| Name | Type | Description |
| String | The email address of the contact to enable subscription preference. | |
| SubscriptionTypeId | Integer | The unique identifier of the subscription. |
| 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 enable was successful. |
| ErrorCode | Integer | If the procedure fails, displays the corresponding error code. |
| ErrorMessage | String | If the procedure fails, provides a detailed error message. |