# How i start a case using API REST?

**URL:** <https://community.ofelia.com/t/how-i-start-a-case-using-api-rest/6390>\
**Category:** Q&A\
**Created:** [31 August 2015 18:36 UTC](https://community.ofelia.com/t/how-i-start-a-case-using-api-rest/6390 "2015-08-31T18:36:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![claz08](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@claz08](https://community.ofelia.com/u/claz08)\
**Post date:** [31 August 2015 18:36 UTC](https://community.ofelia.com/t/how-i-start-a-case-using-api-rest/6390/1 "2015-08-31T18:36:57Z")

</div>

Hi ,  
when i start a process using execute button into bonita studio , it redirected me to bonita portal page where there are a button, for start a case .

So my question is :

How i create a similar button in my page , where allow me to start a case?

i’m using PHP CURL and now i managed to obtain processDefinitionId.

regards.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [1 September 2015 07:48 UTC](https://community.ofelia.com/t/how-i-start-a-case-using-api-rest/6390/2 "2015-09-01T07:48:26Z")

</div>

Hello, claz08. It looks like you already found the information, but as reference for anyone else with the same question, you send a Post of …/API/bpm/case with the process definition id in the payload. You can get the process definition id with a Get of …/API/bpm/process with some search parameters.  
There are a couple of examples of starting cases in [[http://documentation.bonitasoft.com/bpm-api-1#case](http://documentation.bonitasoft.com/bpm-api-1#case)].

---

<div class="post-metadata">

**Author:** ![mtdonovan](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@mtdonovan](https://community.ofelia.com/u/mtdonovan)\
**Post date:** [1 September 2015 17:47 UTC](https://community.ofelia.com/t/how-i-start-a-case-using-api-rest/6390/3 "2015-09-01T17:47:13Z")

</div>

Hello,

I’m having some issues using the POST method with starting a case. I’m using Advance Rest Client.

calling

[http://localhost:8080/API/bpm/case](http://localhost:8080/API/bpm/case) with appropriate cookie.

and “processDefinitionId”:“7711998709027698277”

Apache Tomcat/7.0.55 - Error report 
# HTTP Status 404 - /API/bpm/case

* * *

**type** Status report

**message** /API/bpm/case

**description** The requested resource is not available.

* * *

### Apache Tomcat/7.0.55

I’m able to get the API to work for gets and login call but not the start case.

---

<div class="post-metadata">

**Author:** ![claz08](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@claz08](https://community.ofelia.com/u/claz08)\
**Post date:** [31 August 2015 19:13 UTC](https://community.ofelia.com/t/how-i-start-a-case-using-api-rest/6390/4 "2015-08-31T19:13:39Z")

</div>

i resolved the problem, using bonita documentation and PHP-CURL
