Cancel Developer Job
curl --request POST \
--url https://omnicommerce.sg/api/v1/jobs/{jobId}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"organizationId": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({organizationId: '<string>'})
};
fetch('https://omnicommerce.sg/api/v1/jobs/{jobId}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/jobs/{jobId}/cancel"
payload = { "organizationId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "developer_v1"
}Developer Platform
Cancel Developer Job
Request cancellation for a running or pending developer job.
Supported jobs:
-
Product workflows returned by
POST /api/v1/products -
Bulk CSV imports returned by
POST /api/v1/products/bulk-import -
Look generation returned by
POST /api/v1/looks
Completed or failed jobs cannot be cancelled and are returned with their current terminal status.
POST
/
api
/
v1
/
jobs
/
{jobId}
/
cancel
Cancel Developer Job
curl --request POST \
--url https://omnicommerce.sg/api/v1/jobs/{jobId}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"organizationId": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({organizationId: '<string>'})
};
fetch('https://omnicommerce.sg/api/v1/jobs/{jobId}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/jobs/{jobId}/cancel"
payload = { "organizationId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "developer_v1"
}Authorizations
Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.
Path Parameters
Body
application/json
Optional for API-key requests; required only when cancelling with a browser session across multiple organizations.