Discussions

Ask a Question
Back to All

Adding/Editing assets to an existing workorder through the work description section

Hi

Currently we are trying to add assets to the work description section of a workorder using the below API and payload


PUT: /base/Workorder

Payload:

            {  
    "Entity": {  
        "Id": 875329,  
       "Items":[{
                "WorkOrderId": 875329,
                "SortOrderIdx": 1,
                "AssetLocation": "Equipment",
                    "Asset": {
                    "Id": "526595"
                },
                "Task": {
                    "Id": 35547
                },
                "Comment": "testing"

            }

        ]
},
"Properties": [
    "Id",
   "Items.*"
]

}

Could you please provide information on what does the SortOrderIdx and AssetLocation fields represents, as we are unable to determine what should be given as the AssetLocation value while adding the items to the work description section.


Kindly provide information on the above and let us know if any additional details are required.


Thank you