# REST API bpm/caseVariable what is variable\_id source

**URL:** <https://community.ofelia.com/t/rest-api-bpm-casevariable-what-is-variable-id-source/4203>\
**Category:** Q&A\
**Created:** [13 February 2014 17:36 UTC](https://community.ofelia.com/t/rest-api-bpm-casevariable-what-is-variable-id-source/4203 "2014-02-13T17:36:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mighty](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@mighty](https://community.ofelia.com/u/mighty)\
**Post date:** [13 February 2014 17:36 UTC](https://community.ofelia.com/t/rest-api-bpm-casevariable-what-is-variable-id-source/4203/1 "2014-02-13T17:36:07Z")

</div>

The REST API documents that for a bpm/caseVariable GET request, you need the case\_id and the variable\_id. I can find the case\_id from bpm/case GET but where does the variable\_id come from? I haven't seen it returned in&nbsp;any of the REST API that I've used to date.

It would be really helpful if the JSON structure for each of the calls was listed in the documentation.&nbsp;

---

<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:** [17 February 2014 13:46 UTC](https://community.ofelia.com/t/rest-api-bpm-casevariable-what-is-variable-id-source/4203/2 "2014-02-17T13:46:07Z")

</div>

Hi,

"variable\_id" is actually the variable name. So, in order to get the value of variable "myvar" in the case with id 2 use:

http://host:port/bonita/API/bpm/caseVariable/2/myvar

In order to get all variables of a given case take a look here http://documentation.bonitasoft.com/web-rest-api-examples (get process instance data values)

Regards,
