Prepare Catalog File Parts
curl --request POST \
--url https://omnicommerce.ai/api/v1/catalog/operations/plan/file-parts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"operationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parts": [
{
"partNumber": 32,
"sha256": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
operationId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
parts: [{partNumber: 32, sha256: '<string>'}]
})
};
fetch('https://omnicommerce.ai/api/v1/catalog/operations/plan/file-parts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/catalog/operations/plan/file-parts"
payload = {
"operationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parts": [
{
"partNumber": 32,
"sha256": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"data": {
"operationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partSizeBytes": 123,
"accepted": true,
"parts": [
{
"partNumber": 123,
"sizeBytes": 123,
"uploaded": true,
"uploadUrl": "<string>"
}
]
},
"apiVersion": "<string>",
"operationId": "<string>",
"status": "<string>"
}Catalog
Prepare Catalog File Parts
Request signed PUT URLs for up to eight file parts. Each is 8 MiB except the final part. Send the exact bytes and x-amz-checksum-sha256 header to the signed URL. Previously uploaded matching parts are skipped. Requires catalog:read and catalog:write.
POST
/
api
/
v1
/
catalog
/
operations
/
plan
/
file-parts
Prepare Catalog File Parts
curl --request POST \
--url https://omnicommerce.ai/api/v1/catalog/operations/plan/file-parts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"operationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parts": [
{
"partNumber": 32,
"sha256": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
operationId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
parts: [{partNumber: 32, sha256: '<string>'}]
})
};
fetch('https://omnicommerce.ai/api/v1/catalog/operations/plan/file-parts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/catalog/operations/plan/file-parts"
payload = {
"operationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parts": [
{
"partNumber": 32,
"sha256": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"data": {
"operationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partSizeBytes": 123,
"accepted": true,
"parts": [
{
"partNumber": 123,
"sizeBytes": 123,
"uploaded": true,
"uploadUrl": "<string>"
}
]
},
"apiVersion": "<string>",
"operationId": "<string>",
"status": "<string>"
}Authorizations
Query Parameters
Body
application/json