AnsweredAssumed Answered

Starting a process instance via REST

Question asked by davidcarrico on Feb 19, 2015
Latest reply on Aug 12, 2015 by yzk0281
So I am trying to start a process instance using REST API. I have read the REST API, and am calling the following:

(POST) http://localhost:8080/activiti-rest/service/runtime/process-instances
Headers: Authorization: Basic a2VybWl0Omtlcm1pdA==

Content-Type: application/json
{"name":"employeeName", "value":"lola"}.
{"name":"numberOfDays", "value":"5"},
{"name":"startDate", "value":"10-08-2014 11:11"},
{"name":"vacationMotivation", "value":"tired"}

Response: 400 bad request

Two questions:
1) Why would the above attempt result in 400? It is the example "Vacation Request" process definition in Activiti.
2) How do I determine which fields need to be included in this request to begin with? For example, is there a way to example the process definition to determine it needs: "employeeName", "numberOfDays", etc in order to start it.

Many thanks in advance!