Import objects
POST/v2/prism/{teamId}/organization/import
Import multiple objects in batch. Properties are keyed by slug. Automatically routes based on size: small batches complete synchronously and return 200 with the final ImportJob; large batches start an async job, return 202 with status: processing and a Location header, and can be polled via GET /v2/prism/{teamId}/imports/{jobId}.
Returns
Import objects
curl https://developers.micro.so/v2/prism/$TEAM_ID/organization/import \
-H 'Content-Type: application/json' \
-H "x-api-key: $MICRO_API_KEY" \
-d '{
"objects": [
{}
]
}'{
"job_id": "job_id",
"status": "complete",
"total": 0,
"created_at": "2019-12-27T18:11:19.117Z",
"error": {
"code": "code",
"message": "message"
},
"expires_at": "2019-12-27T18:11:19.117Z",
"failed": 0,
"processed": 0,
"results": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created": true,
"error": {
"code": "code",
"message": "message"
},
"existing": true
}
],
"succeeded": 0,
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"job_id": "job_id",
"status": "complete",
"total": 0,
"created_at": "2019-12-27T18:11:19.117Z",
"error": {
"code": "code",
"message": "message"
},
"expires_at": "2019-12-27T18:11:19.117Z",
"failed": 0,
"processed": 0,
"results": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created": true,
"error": {
"code": "code",
"message": "message"
},
"existing": true
}
],
"succeeded": 0,
"updated_at": "2019-12-27T18:11:19.117Z"
}