cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1818
Views
0
Helpful
1
Replies

CPO 3.3 REST API POST /api/v1/ProcessInstances

Ayaz Ahmed
Level 1
Level 1

I am trying to obtain the status of process that was started via the CPO REST Interface. When I Invoke the

POST /api/v1/ProcessInstances with a process instance Id  it returns an error message { "Message": "Missing required parameters" }.

The input parameter is an array of string, a list of GUIDs, I am assuming it is called ProcessInstances and I am passing only one element in the JSON body

curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" -d "{\"ProcessInstances\":[\"d26e33c1-da59-031c-c984-eeb184999365\"]}" "http://localhost:51527/api/v1/ProcessInstances"

Screen shot attached. Any idea what could be wrong here?

1 Reply 1

Tuan Tran
Cisco Employee
Cisco Employee

You've probably already figured out the cause.

But, anyway, in the "curl" statement above, the property name of the process instance Ids is "ids".

In your screenshot, do not put "ProcessInstances" in the "ids" parameter.