Create a new destination object
This endpoint can be used to create objects in a destination. Each object requires object attributes and field attributes
which are unique to the destination. The object attributes and field attributes can be found in the List destination object types API [by destination ID] [by destination type name].
Request schema
Path parameters
destination_id
integerrequired
ID of the destination
Header parameters
Authorization
stringrequired
HTTP: basicAuth
HTTP AuthorizationScheme: basic
Request
object_type
string
Specifies the type of object to create.
object_attributes
object
Specifies the attributes of the object.
fields
array
Specifies the attributes of the fields in the object.
type:
Http + 1.1
POST
https://app.getcensus.com/api/v1/destinations/{destination_id}/object_creation_requests
POST /api/v1/destinations/{destination_id}/object_creation_requests HTTP/1.1 Authorization: Bearer REPLACE_BEARER_TOKEN Content-Type: application/json Host: app.getcensus.com Content-Length: 82 { "object_type": "string", "object_attributes": {}, "fields": [ {} ] }
Responses
201
Object creation request was successfully enqueued.
404
Resource not found.
201
status
string
Outcome of the operation.
enum:
url
string
The URL to check the status of the object creation job.
example:
404
status
integer
HTTP status code.
enum:
{ "status": "created", "url": "https://api.getcensus.com/destinations/12/object-creation-requests/1647978948" }