Import Export
Import collection data
Create documents in the collection identified by collection parameter.
post/_fabric/{fabric}/_api/import/{collection}
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
fabricstring string required
The name of the fabric.
collectionstring string required
The name of the collection.
Request body
Example request
{
"data": [
{
"_key": "1634556",
"name": "test1"
}
]
}Response
Successfully imported data.
If there are any errors, an additional header X-C8-Error-Codes is set, that contains a map of the error codes that occurred together with their multiplicities, as in: 1205:10,1210:17 which means that in 10 cases the error 1205 "illegal document handle" and in 17 cases the error 1210 "unique constraint violated" has happened. The response body has additional failed document details in details object.
Example response
{
"code": 200,
"result": {
"created": 3
}
}Changes
No recorded changes to this operation across all 1 revision of this API.