POST
/
destinations
/
{destination_id}
/
object_creation_request
curl --request POST \
  --url https://app.getcensus.com/api/v1/destinations/{destination_id}/object_creation_request \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "object_type": "<string>",
  "object_attributes": {},
  "fields": [
    {}
  ]
}'
{
  "status": "created",
  "url": "https://api.getcensus.com/destinations/12/object-creation-requests/1647978948"
}

Authorizations

Authorization
string
headerrequired

Bearer token for the current workspace. Can be retrieved from the Workspace's settings page.

Path Parameters

destination_id
integer
required

ID of the destination

Body

application/json
object_type
string

Specifies the type of object to create.

object_attributes
object

Specifies the attributes of the object.

fields
object[]

Specifies the attributes of the fields in the object.

Response

201 - application/json
status
enum<string>

Outcome of the operation.

Available options:
created
url
string

The URL to check the status of the object creation job.