Updates consent preferences for the current cart session
POST and PUT methods are supported for this endpoint, providing flexibility for different client implementations.id (string, required): Unique identifier of the consent to updaterevoke (boolean, optional): Set to true to revoke consent. Omit or set to false to grant consent. Default: falseexplicit: truerevokable: true can be revoked| Error Code | Description | Resolution |
|---|---|---|
ErrorCartNotFound | Cart does not exist | Verify cart ID and domain |
ErrorInvalidInputBody | Invalid request format | Check request body structure |
ErrorConsentNotFound | One or more consent IDs not found | Verify consent IDs with Get Consents |
ErrorConsentNotRevokable | Attempted to revoke non-revokable consent | Check consent revokable status |
ErrorStoreUnavailable | Store service unavailable | Retry request |
MissingAuthHeader | Missing authorization header | Include x-firmly-authorization header |