Orders
POST order links
Changed onLink one or more records of a single type to an order. The batch is all-or-nothing: a rejected id rolls back the rest.
post/orders/{order_id}/links
Request
- Base URLhttps://api.equipmentshare.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Path parameters
order_id, integer required
The ID of the order.
Request body
Order Link Create Request required
linked_entity_ids, string[] required
Ids of the records to link. Integer ids for sales orders and work orders; a UUID for a CostCapture purchase order.
order_link_type_id, integer required
Link type: 1 = sales order, 2 = work order, 3 = purchase order.
Response
Order Links Response required
purchase_orders, Linked Purchase Order[] required
sales_orders, Linked Sales Order[] required
work_orders, Linked Work Order[] required
Changes
- info
added the media type
application/jsonfor the response with the status
- info
- breaking
removed the media type
application/jsonfor the response with the status
- breaking