Objects

objects

Methods

Add Subscriptions -> Array<>
post/v1/objects/{collection}/{object_id}/subscriptions

Add subscriptions for an object. If a subscription already exists, it will be updated.

Delete An Object -> string
delete/v1/objects/{collection}/{object_id}

Delete an object

Delete Subscriptions -> Array<>
delete/v1/objects/{collection}/{object_id}/subscriptions

Delete subscriptions

Get An Object ->
get/v1/objects/{collection}/{object_id}

Get an object

Get Channel Data ->
get/v1/objects/{collection}/{object_id}/channel_data/{channel_id}

Get channel data

Get A Preference Set ->
get/v1/objects/{collection}/{object_id}/preferences/{preference_set_id}

Get a preference set

List Objects In A Collection -> EntriesCursor<>
get/v1/objects/{collection}

List objects in a collection

Parameters
collection: string
after: string
Optional

The cursor to fetch entries after

before: string
Optional

The cursor to fetch entries before

page_size: number
Optional

The page size to fetch

Response fields
entries: Array<>

The list of objects

page_info: { __typename, page_size, after, 1 more... }

The information about a paginated result

Request example
200Example
List Messages -> EntriesCursor<>
get/v1/objects/{collection}/{object_id}/messages

List messages

List Schedules -> EntriesCursor<>
get/v1/objects/{collection}/{object_id}/schedules

List schedules

List Subscriptions -> EntriesCursor<>
get/v1/objects/{collection}/{object_id}/subscriptions

List subscriptions for an object. Either list all subscriptions that belong to the object, or all subscriptions that this object has. Determined by the mode query parameter.

Set Identify An Object ->
put/v1/objects/{collection}/{object_id}

Set (identify) an object

Set Channel Data ->
put/v1/objects/{collection}/{object_id}/channel_data/{channel_id}

Set channel data

Update A Preference Set ->
put/v1/objects/{collection}/{object_id}/preferences/{preference_set_id}

Update a preference set

Unset Channel Data -> string
delete/v1/objects/{collection}/{object_id}/channel_data/{channel_id}

Unset channel data

Domain types

InlineObjectRequest = { id, collection, channel_data, 2 more... }

Inline identifies a custom object belonging to a collection

Object = { id, __typename, collection, 2 more... }

A custom-object entity which belongs to a collection.

objects.bulk

Methods

Bulk Add Subscriptions ->
post/v1/objects/{collection}/bulk/subscriptions/add

Add subscriptions for a set of objects in a single collection. If a subscription already exists, it will be updated.

Bulk Delete Objects ->
post/v1/objects/{collection}/bulk/delete

Bulk delete objects

Bulk Set Objects ->
post/v1/objects/{collection}/bulk/set

Bulk set objects