Marketing consent is a legal requirement in many jurisdictions (GDPR, CAN-SPAM, etc.). Only send marketing communications to people who have granted consent. Always record the source of consent for compliance purposes.
When integrating with external forms or signup flows, use this endpoint to record consent captured from those sources. The source field will be set to api for all updates made through this endpoint.