Skip to main content
Objects in SuprSend represent non-user entities such as organizations, teams , roles, and projects. Understand more about objects from our objects documentation

Upsert (create/update) an object

Object updating is an upsert function, meaning it would always override existing key values on further updates. Object id and type is mandatory to create object. You can optionally pass object properties (to use in template or workflow condition) or channel information (send notification on object channels) in the payload.

Edit an object

There are 2 ways in which you can edit an object data.
  • Build edit payload yourself
  • Use helper methods provided by SDK (Recommended)

1. Build edit payload yourself

Use this to modify an object, typically for removing channels or unsetting properties. The payload will follow the same structure as the Object Edit API.
It is possible to use the SDK’s helper methods to perform edit operations on an object. For this, first create object instance then call any of the helper methods mentioned below and finally save the changes.
Here’s a list of all edit helper methods:
Use object_ins.add_* method(s) to add user channels in a profile
Use object_ins.remove_* method(s) to remove channels from an object profile
If you need to delete/unset all emails (or any other channel) of an object, you can call object_ins.unset() method on the object instance. The method accepts the channel key/s (a single key or list of keys)
Set is used to set the custom property or properties. The given name and value will be assigned to the object, overwriting an existing property with the same name if present. It can take key as first param, value as second param for setting single object property or object for setting multiple object properties.
When you create a key, please ensure that the Key Name does not start with or , as we have reserved these symbols for our internal events and property names.
Works just like object_ins.set, except it will not overwrite existing property values. This is useful for properties like First login date
Add the given amount to an existing property on the object. If the object does not already have the associated property, the amount will be added to zero. To reduce a property, provide a negative number for the value.
This method will append a value to the list for a given property.
This method will remove a value from the list for a given property.
This will remove a property permanently from properties.
After calling add_*/remove_*/unset methods, don’t forget to call object_ins.save(). On call of save(), SDK sends the request to SuprSend platform to update the Object Profile.

List objects

List objects for an object_type. You can also pass listing options in the payload which includes limit,before,after

Get object details

Create subscriptions

List subscriptions

Remove object subscription

Get list of objects subscribed by object

An object can subscribe to other objects. Use this method to get the list of all objects that the current object has subscribed to.

Delete object

Bulk Delete object