Replace order item design
POST
/order-item-artworks/{orderItemArtworkId}/design
Replace the design file for an existing print area, identified by its order_item_artwork_id
(the id field returned in an order's print_areas[] — see Get order). Mirrors the
Portal's "Replace design" action: only the file changes in place, the print area's
artwork_id/customization_id are untouched and no new print area is created.
Requires orders:write ability.
The target order item must currently be in the Ready status (status: 2 on the order
item), or the request is rejected with 422.
Provide exactly one of file (multipart upload) or url (JSON body, a publicly reachable
URL Teeinblue fetches server-side).
Whether the returned url stays the same on every replace (true overwrite) or changes on
every call depends on whether this print area is a plain custom upload or an
artwork/template-based design — check the updated_at field (or diff the url) rather
than assuming either behavior.
Authorizations
bearerAuth
Include Authorization: Bearer <token> header.
Token must have the required abilities.
Type
HTTP (bearer)
Parameters
Path Parameters
orderItemArtworkId*
The print area's id, from an order's print_areas[].id.
Type
Requiredinteger
Example
567Request Body
The replacement design file (image, PDF, or PostScript).
Format
"binary"Responses
Design replaced
application/json
JSON "id": 567, "customization_id": 890, "thumbnail": "https://cdn.teeinblue.com/thumbnails/567-thumb.jpg", "url": "https://cdn.teeinblue.com/artworks/567-print.png", "key": "front", "width": 2400, "height": 3000, "error_message": "Image resolution too low for print quality", "is_processing": false, "customization": { }, "customer_uploads": [ { "original_url": "https://cdn.teeinblue.com/uploads/567-upload.jpg", "master_url": "https://cdn.teeinblue.com/uploads/567-upload.jpg" } ], "artworks": [ { "id": 123, "name": "Photo on live preview", "templates": [ { "id": 123, "name": "Default template" } ] } ], "created_at": "2025-01-15T10:30:00Z", "updated_at": "2025-01-15T11:15:00Z"
{
}
POST
/order-item-artworks/{orderItemArtworkId}/design