How to change Movement Request status from 'Incomplete' to 'Preapproved' status using Rest API.
Summary:
I have a requirement to create movement request in preapproved status using rest API via OIC tool.
I have found one note for this Doc ID 2558576.1.
By following above note, i am able to create movement request header and lines in 'Incomplete' status.
Header creation API
/fscmRestApi/resources/11.13.18.05/inventoryMovementRequests
Line Creation API
/fscmRestApi/resources/11.13.18.05/inventoryMovementRequests/{HeaderId}/child/lines
But i am facing issue while trying to change status of Movement request from 'Incomplete' to 'Preapproved' using API in Patch mode .
/fscmRestApi/resources/11.13.18.05/inventoryMovementRequests/{HeaderId}
Payload :
{
"Status":"Preapproved"
}
When i use above API in Patch , i get below error.
"The value of the attribute Status isn't valid"