Production items

Add attachment to line items

post

The API gives the ability to add attachment to line item.

Allowed content-types:

  • image/png

  • model/obj

  • application/pdf

  • image/webp

  • image/jpeg

  • text/plain

  • application/vnd.hp-HPGL

  • application/vnd.ms-excel

  • application/msword

  • application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

  • application/vnd.openxmlformats-officedocument.wordprocessingml.document

Authorizations
x-api-keystringRequired
Path parameters
external_order_idstringRequired

The unique identifier of the order

Example: b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e
line_item_idstringRequired

The unique identifier of the production item

Example: 557657-8654-89i76
Header parameters
x-tenant-idstring · uuidOptional

Tenant id (uuid v4)

Body
file_namestringOptional

File name

Example: technical_drawing.pdf
urlstringRequired

URL of the file

Example: https://cdn.example.com/files/technical_drawing.pdf
is_primarybooleanOptional

Marks image as primary line item image

Example: false
Responses
201Success
application/json
post
/api/public/orders/{external_order_id}/line-items/{line_item_id}/attachments
POST /api/public/orders/{external_order_id}/line-items/{line_item_id}/attachments HTTP/1.1
Host: 
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 116

{
  "file_name": "technical_drawing.pdf",
  "url": "https://cdn.example.com/files/technical_drawing.pdf",
  "is_primary": false
}
{
  "message": "The operation was done successfully"
}

Last updated