Attach an uploaded file to a line
attach_artworkAfter the file has been PUT to request_artwork_upload's upload_url: puts it on the line (in the design and side chosen then, replacing a file already in that slot), makes the page 1 and page 2 previews, runs Printdash's file checks, and returns the preview as an image with the checks' notices. The notices are the ones checkout shows; none of them blocks an order. Needs a signed-in Printdash account: called without one, the connection asks the customer to sign in on printdash.io.
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": {
"upload_id": "<upload_id>"
},
"name": "attach_artwork"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upload_id | Yes | The upload_id request_artwork_upload returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| next | Yes | ||
| side | Yes | ||
| files | Yes | ||
| total | Yes | ||
| checks | Yes | ||
| design | Yes | ||
| target | Yes | ||
| designs | Yes | Which file and page is each design's front and back, as the site resolves them. | |
| preview | Yes | ||
| attached | Yes | ||
| complete | Yes | Designs with every face they need. | |
| replaced | Yes | ||
| uploader_url | Yes | ||
| order_item_status | No |