Opt out a contact from all email

Looking for a way to opt a contact out of all marketing emails. I noticed there’s a legacy endpoint that does this, but nothing in the newer APIs. This endpoint comes close, but it requires a subscription ID, whereas I want to just unsubscribe from all:

https://api.hubapi.com/communication-preferences/v3/unsubscribe