Create a new activation object
This endpoint can be used to create objects in an activation. Each object requires object attributes and field attributes which are unique to the activation type. You can find the object and field attributes in the List activation object types API.
Request schema
Path parameters
activation_id
stringrequired
ID of the activation
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:
object
Http + 1.1
POST /api/v2/activations/{activation_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:
"created"
url
string
The URL to check the status of the object creation job.
example:
https://api.getcensus.com/activations/glimmering_donkey/object-creation-requests/1647978948
404
status
integer
HTTP status code.
enum:
"404"
{ "status": "created", "url": "https://api.getcensus.com/activations/glimmering_donkey/object-creation-requests/1647978948" }