Clients marketing consent edit via admin rest API

Hi,

we are building a custom reservation flow using the admin rest API. We need an option to set/edit the users marketing consent.

The user can choose to opt in via our custom booking UI, but we can not find a way to save/set it in SB.

Thanks.