POST /inventory-exports.json
Body Required
-
Delivery
Values are
email
,s3
, ors3_external
. Default value iss3
. -
emails array[string] | null
Emails
-
Enabled
Default value is
true
. -
Inventory type
Values are
all
,inventory_feeds
, orinhouse
. Default value isall
. -
lastExportedAt string(date-time) | null
Last exported at
-
Name
-
Overwrite
Default value is
true
. -
s3Bucket string | null
S3 bucket
-
s3Key string | null
S3 key
-
s3Path string | null
S3 path
-
s3Secret string | null
S3 secret
-
Scheduled type
Values are
shared
ordedicated
. Default value isshared
. -
Sending schedule
Values are
daily
,hourly
, ormanual
. Default value ismanual
.
POST /inventory-exports.json
curl \
-X POST http://api.example.com/v1/inventory-exports.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"delivery":"s3","emails":["string"],"enabled":true,"inventoryType":"all","lastExportedAt":"2024-05-04T09:42:00+00:00","name":"string","overwrite":true,"s3Bucket":"string","s3Key":"string","s3Path":"string","s3Secret":"string","scheduledType":"shared","sendingSchedule":"manual"}'
Request example
{
"delivery": "s3",
"emails": [
"string"
],
"enabled": true,
"inventoryType": "all",
"lastExportedAt": "2024-05-04T09:42:00+00:00",
"name": "string",
"overwrite": true,
"s3Bucket": "string",
"s3Key": "string",
"s3Path": "string",
"s3Secret": "string",
"scheduledType": "shared",
"sendingSchedule": "manual"
}
Response examples (200)
{
"createdAt": "2024-05-04T09:42:00+00:00",
"delivery": "s3",
"emails": [
"string"
],
"enabled": true,
"id": 42,
"inventoryType": "all",
"lastExportedAt": "2024-05-04T09:42:00+00:00",
"name": "string",
"overwrite": true,
"s3Bucket": "string",
"s3Key": "string",
"s3Path": "string",
"s3Secret": "string",
"scheduledType": "shared",
"sendingSchedule": "manual",
"updatedAt": "2024-05-04T09:42:00+00:00"
}