Update modular source work item
curl --request PATCH \
--url https://api.interchange.io/api/v2/storefront/inventory-sources/{sourceId}/modular/work-items/{workItemId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assignedTo": "<string>",
"blockedReason": "<string>",
"result": {},
"notes": "<string>"
}
'import requests
url = "https://api.interchange.io/api/v2/storefront/inventory-sources/{sourceId}/modular/work-items/{workItemId}"
payload = {
"assignedTo": "<string>",
"blockedReason": "<string>",
"result": {},
"notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assignedTo: '<string>',
blockedReason: '<string>',
result: {},
notes: '<string>'
})
};
fetch('https://api.interchange.io/api/v2/storefront/inventory-sources/{sourceId}/modular/work-items/{workItemId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ok": true,
"item": {
"id": "<string>",
"storefrontId": "<string>",
"inventorySourceId": "<string>",
"moduleId": "<string>",
"kind": "APPROVE_MEDIA_BUY",
"title": "<string>",
"description": "<string>",
"status": "OPEN",
"priority": "LOW",
"resourceType": "<string>",
"resourceId": "<string>",
"mediaBuyId": "<string>",
"buyerCustomerId": 0,
"assignedTo": "<string>",
"dueAt": "2023-11-07T05:31:56Z",
"payload": {},
"result": {},
"blockedReason": "<string>",
"createdByType": "<string>",
"createdById": "<string>",
"completedBy": "<string>",
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"changed": true
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Storefront
Update modular source work item
Update assignment, status, notes, or intermediate result metadata for a modular inventory source work item.
PATCH
/
inventory-sources
/
{sourceId}
/
modular
/
work-items
/
{workItemId}
Update modular source work item
curl --request PATCH \
--url https://api.interchange.io/api/v2/storefront/inventory-sources/{sourceId}/modular/work-items/{workItemId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"assignedTo": "<string>",
"blockedReason": "<string>",
"result": {},
"notes": "<string>"
}
'import requests
url = "https://api.interchange.io/api/v2/storefront/inventory-sources/{sourceId}/modular/work-items/{workItemId}"
payload = {
"assignedTo": "<string>",
"blockedReason": "<string>",
"result": {},
"notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assignedTo: '<string>',
blockedReason: '<string>',
result: {},
notes: '<string>'
})
};
fetch('https://api.interchange.io/api/v2/storefront/inventory-sources/{sourceId}/modular/work-items/{workItemId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ok": true,
"item": {
"id": "<string>",
"storefrontId": "<string>",
"inventorySourceId": "<string>",
"moduleId": "<string>",
"kind": "APPROVE_MEDIA_BUY",
"title": "<string>",
"description": "<string>",
"status": "OPEN",
"priority": "LOW",
"resourceType": "<string>",
"resourceId": "<string>",
"mediaBuyId": "<string>",
"buyerCustomerId": 0,
"assignedTo": "<string>",
"dueAt": "2023-11-07T05:31:56Z",
"payload": {},
"result": {},
"blockedReason": "<string>",
"createdByType": "<string>",
"createdById": "<string>",
"completedBy": "<string>",
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"changed": true
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Authorizations
API key or access token
Path Parameters
Inventory source ID
Minimum string length:
1Inventory source work item id
Minimum string length:
1Body
application/json
Updates assignment, status, notes, or intermediate result metadata for a modular inventory source work item. Use the complete endpoint for completion.
Response
Update modular source work item
Available options:
true Seller-facing work item for a modular inventory source lifecycle task.
Show child attributes
Show child attributes
Completion only. True when this call completed the item; false when it was already COMPLETED and the call was an idempotent no-op. Decided under the row lock, so it is safe against a concurrent completion. Absent on update responses.