Edit Resource Line

Allows the user to edit the Resource Line from the Work Order

Uri

PATCH api/dynaway/eam/v1.0/companies({{Company_ID}})/workOrders({{WorkOrder_ID}})/workOrderResourceLines({{ResourceLine_ID}})

Parameters

CompanyID
- ID of the Company.
WorkOrder_ID
- System ID of the Work Order.
ResourceLine_ID
- System ID of the Resource Line.
No
- Number of the Resource. Can be added only when the chosen line has no resource number. Otherwise number can not be changed.
ResourceID
- System ID of the resource given as string - GUID. Using Resource system ID - resource 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.
WorkTypeID
- System ID of the Work Type given as string - GUID. Use Work TypeID or Code.
WorkTypeCode
- Code of the Work Type given as string. Use Work TypeID or Code.
Quantity
- Quantity given as decimal.
QtyToConsume
- Quantity To Consume given as decimal.
If-Match
- Value: * Added to the header.

Form Data

Example: 
{
    "no": "DC",
    "description": "Added from API",
    "workTypeCode": "CLEANING",
    "quantity": 5,
    "qtyToConsume": 1
}

JSON Response

{
    "id": "7c0e1ed6-6381-ed11-9989-6045bd003239",
    "documentId": "de67db9f-2e55-ed11-8c36-000d3a9e13fe",
    "sequence": 70000,
    "resourceId": "3eca0d3e-c64a-ed11-946f-000d3a9e1b5a",
    "no": "DC",
    "description": "Added from API",
    "unitOfMeasureId": "b9a5e8b2-1746-ed11-946f-000d3a9e174a",
    "unitOfMeasureCode": "HOUR",
    "workTypeId": "47ca0d3e-c64a-ed11-946f-000d3a9e1b5a",
    "workTypeCode": "CLEANING",
    "quantity": 5,
    "qtyToConsume": 4,
    "qtyConsumed": 1,
    "startingDate": "2022-10-23",
    "startingTime": "01:00:00",
    "endingDate": "2022-10-23",
    "endingTime": "23:00:00"
}

Copyright Dynaway A/S

Privacy Policy