Working with Data Buckets
Data Buckets can be managed using the DX Graph API, and files can be uploaded to and downloaded from a Data Bucket using either the DX Graph API or the DX Graph UI as described here. This is useful for uploading data files to be imported into a Collection or downloading data files that have been exported from a Collection.
The following examples handle a Data Bucket with code store-sales
and name Store Sales
.
Creating a Data Bucket
PUT https://io.conscia.ai/vue/_api/v1/buckets/store-sales
content-type: application/json
Authorization: Bearer {{apiKey}}
X-Customer-Code: {{customerCode}}
{
"dataBucketEntry": {
"name": "Store Sales"
}
}
Removing a Data Bucket
DELETE https://io.conscia.ai/vue/_api/v1/buckets/store-sales
content-type: application/json
Authorization: Bearer {{apiKey}}
X-Customer-Code: {{customerCode}}
Listing Data Buckets
GET https://io.conscia.ai/vue/_api/v1/buckets
content-type: application/json
Authorization: Bearer {{apiKey}}
X-Customer-Code: {{customerCode}}