create work definition for a work order using rest api
Dear All,
I am trying to create a work definition for a work order using the REST API, but when I use this JSON request body:
{
"AssetNumber":"test",
"WorkOrderTypeCode":"CORRECTIVE",
"OrganizationCode":"testoc",
"WorkOrderSubTypeCode":"ORA_EMERGENCY",
"WorkOrderPriority":1,
"Status":"PENDING",
"WorkOrderOperation":[
{
"OperationName":"test",
"WorkCenterCode":"test",
"CountPointOperationFlag":"Y",
"OperationType":"IN_HOUSE",
"OperationSequenceNumber":10
}
]
}
This request is creating an operation:
But I need to create the work definition at the level of the work definition in the general information tab.
Is there a method to achieve that using rest api?
Thank you in advance,