Allows the user to edit the Item Line from the Work Order
Uri
PATCH api/dynaway/eam/v1.0/companies({{Company_ID}})/workOrders({{WorkOrder_ID}})/workOrderItemLines({{ItemLine_ID}})
Parameters
-
CompanyID
-
- ID of the Company.
-
WorkOrder_ID
-
- System ID of the Work Order.
-
ItemLine_ID
-
- System ID of the Item Line.
-
No
-
- Number of the Item . Can be added only when the chosen line has no item number. Otherwise number can not be changed.
-
ItemID
-
- System ID of the item given as string - GUID. Using Item system ID - item on the line can be changed if consumption is not registered for this line.
-
Description
-
- Maximum lenght: 100.
-
UnitOfMeasureID
-
- System ID of the UoM given as string - GUID. Use UoM ID or Code.
-
UnitOfMeasureCode
-
- Code of the UoM given as string. Use UoM ID or Code.
-
Quantity
-
- Quantity given as decimal.
-
QtyToConsume
-
- Quantity To Consume given as decimal.
-
If-Match
-
- Value: *
Added to the header.
Form Data
Example:
{
"description": "Added from API",
"quantity": 10,
"qtyToConsume": 1
}
JSON Response
{
"id": "b4ca1ccf-6a81-ed11-9989-000d3a3ad4ae",
"documentId": "87629528-e855-ed11-8c36-000d3a8dc661",
"sequence": 230000,
"itemId": "b4595562-5545-ed11-946f-000d3a8dced5",
"no": "MI.00001",
"description": "Added from API",
"unitOfMeasureId": "d99582a8-b643-ed11-946f-000d3a8dc661",
"unitOfMeasureCode": "PCS",
"quantity": 10,
"qtyToConsume": 1,
"qtyConsumed": 1
}