To create items in bulk using files from a device, you must provide a file containing a JSON object describing the files you're trying to upload. This page contains an example of a JSON file that should be provided in the data
field during the API call. Each object in the array represents an item to be created. The type
property is mandatory, while other properties are optional and depend on the specific item type.
For exact properties for each item type, refer to:
- Create documents in bulk
- Create images in bulk
Note thataltText
is not supported.
Here's a simple JSON file example that describes a document
and an image
.
Items order
The order of items in the JSON file must correspond to the order of uploaded files in the
resources
array of the endpoint.
[
{
"title":"document1",
"type":"document",
"position":{
"origin":"center",
"x":500,
"y":500
}
},
{
"title":"image1",
"type":"image",
"geometry":{
"width":500
}
}
]
Feel free to save and modify this example as needed for your API call.