Request an artwork upload slot
order_request_artwork_uploadStep 1 of attaching the customer's finished artwork file to an order line: get a presigned upload URL.
Returns a presigned url, method (PUT), headers, and object_key.
Get item_id from order_get_artwork_spec.
PUT the raw file bytes straight to url with the headers verbatim (the
bytes never pass through Compass), then call order_confirm_artwork_upload
with the same object_key. Use for a line that has finished artwork and
needs no design from us; prefer order_get_artwork_upload_page when the
user has the file but you don't. Only works for orders created in this
session. Refused with ItemDesignAttachedError when the item of a
multi-item order already holds an attached design: that design is what
prints, and changed artwork for the item needs a new order.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"order_id": "<order_id>",
"item_id": "<item_id>",
"filename": "<filename>",
"content_type": "<content_type>"
},
"name": "order_request_artwork_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | ||
| filename | Yes | ||
| order_id | Yes | ||
| session_id | Yes | ||
| content_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |