Destination Object API
This guide will walk you through the workflow to create an object in the destination and make it available for syncs.
Your application’s workflow may require the creation of objects in the destination before syncing data to them.
Rather than asking your customers to prepare a table in their database or a tab in their Google Sheets, Census provides instrumentation to create these objects via API, thereby eliminating any manual steps from your customer.
Doing so requires 2 simple steps:
List Destination Object Types
To create an object in a destination, you first need to know what types of objects are available in the destination. You can list the object types available in a destination using the following API:
There are 2 ways to get the available object types.
- Get destination object types by your destination ID.
- Get destination object types by the name of the destination type.
Both of these return the same result. The former requires the ID of the connection in Census, while the latter only requires the service name “google_sheets”.
The response will look something like
Create Object in Destination
Using the response from the previous step, you can construct the API call to create a new object in the destination.
The Create a new destination object API is provided to accomplish this. An example API call may look like this:
Was this page helpful?