update buyer in purchase order through rest api
Summary:
I want to update buyer in purchase order. I am using rest api to do the same. But it is throwing error
Content (please ensure you mask any confidential information):
Rest api :-
https://servicehost/fscmRestApi/resources/11.13.18.05/draftPurchaseOrders/3001
Method:- PATCH
Payload :-
{ "ChangeOrderDescription": "Change order", "ChangeOrderInitiatingParty": "BUYER", "Buyer": "Kumar, arsalan"}
Error :-
{ "title": "Bad Request", "status": "400", "o:errorDetails": [ { "detail": "Attribute set for BuyerId in entity DraftPurchaseOrdersRestServiceAM.DraftPurchaseOrderHeader1 failed", "o:errorCode": "27004" } ]}
But through webservice (SOAP) buyer update is working. Please suggest if it is possible to use rest api for the same or it is not currently possible
Version (include the version you are using, if applicable):