Unable to Change Stage using PUT Update api
We are trying to integrate with another system and want to allow that system to change the stage of our process.
We are not able to find what should be sent in the body of the request to use pyChangeStage actiondId.
Url look like this : https://pega/prweb/api/v1/cases/XWY-WORK OFFER-7?actionID=pyChangeStage
Content-Type, If-Match are defined and working.
Looking at the audit log of the case and by tracing the request we see that pyChangeStage is called but without any parameters.
For now the body look like this :
"AuditNote": "Jumped because not needed anymore responded-Sush",
"UserAuditNote":"Jumped because not needed anymore responded-Sush",
"ChangeToStage": "Approval Rejection",
"pyGotoStage": "Approval Rejection",
Could you help us understand what should be sent?
Use this body. You have to use pyChangeStageOption and not ChangeToNextStage. You can retreive the good property directly in the flow action pyChangeStage
"pyAuditNote": "Jumped because not needed anymore responded-Sush",
"pyGotoStage": "Approval Rejection"
Keep up to date on this post and subscribe to comments