Patch
Update Marketing Consent
Developer Preview
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates a marketing consent's properties.
Only fields provided in mask.paths
are updated. You can update the following fields:
state
lastConfirmationActivity
extendedFields
Each time the marketing consent is updated, revision
increments by 1.
Note: For existing marketing consents with {"type": "EMAIL"}
, you can't update the state
to UNKNOWN_STATE
. Trying to do so maintains the current state. However, you can create a new marketing consent and set the state
to UNKNOWN_STATE
. Note that you can't create more than a single consent per email or phone number.
Endpoint
PATCH
https://www.wixapis.com/marketing-consent/v1/marketing-consent/{marketingConsent.id}Was this helpful?
Yes
No