Skip to main content
Objects represent non-user entities such as organizations, teams, roles, and projects. Understand more about objects here.

Create / Update object

This is an upsert method, used to create or update an object.

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)

Edit an object (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
To edit object, you need to first fetch object instance, call all the update methods and save changes using objects.edit method.
List of available methods:
Use object_ins.add* method(s) to add channels
Use object_ins.remove_* method(s) to remove channels from an object
This method will delete/unset all values in specified channel for object (ex: remove all emails attached to object).
If you want to send notification in user’s preferred language, you can set it by passing language code in this method. This is useful especially for the applications which offer vernacular or multi-lingual support.
You can set timezone of user using this method. Value for timezone must be from amongst the IANA timezones.
Set any custom property using this method. It will shallow merge existing properties with new values. Key shouldn’t start with $ or ss.
Use this to unset existing channels or properties.
Use this to append item to an array based property.
Use this to remove an item from array based property
Use this to add new properties which are not overridden, such as first_login_at
Use on numeric values to increment/decrement. Provide a negative value for decrement

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

Add object subscription

List object subscription

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 objects