v1

latestSwagger 2.0Apache 2.02026-08-06303655.6 KB
subscriptions

Create or update a subscription

Upserts a subscription on (contact_id, subscription_type_id, integration_id). If a matching subscription already exists it is updated; otherwise a new one is created.

post/subscriptions

Request body

contact_idstring required

Contact GUID or integer contact ID (both are returned by GET /contacts)

subscription_type_idinteger required
integration_idinteger

Optional integration scoping the subscription

can_emailboolean
is_activeboolean
synced_atstring date-time

Timestamp of last sync from external system. Defaults to now.

Response

Subscription created or updated