# REST API - Get diagram for a process instance

**URL:** <https://forum.flowable.org/t/rest-api-get-diagram-for-a-process-instance/6594>\
**Category:** Uncategorized\
**Created:** [August 25, 2020, 10:17pm UTC](https://forum.flowable.org/t/rest-api-get-diagram-for-a-process-instance/6594 "2020-08-25T22:17:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robinyo](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@Robinyo](https://forum.flowable.org/u/Robinyo)\
**Post date:** [August 25, 2020, 10:17pm UTC](https://forum.flowable.org/t/rest-api-get-diagram-for-a-process-instance/6594/1 "2020-08-25T22:17:28Z")

</div>

The description of the **success response body** for the [endpoint](https://flowable.com/open-source/docs/bpmn/ch15-REST/#get-diagram-for-a-process-instance):

```auto
GET runtime/process-instances/{processInstanceId}/diagram

```

Is not correct:

```auto
{
   "id":"7",
   "url":"http://localhost:8182/runtime/process-instances/7",
   "businessKey":"myBusinessKey",
   "suspended":false,
   "processDefinitionUrl":"http://localhost:8182/repository/process-definitions/processOne%3A1%3A4",
   "activityId":"processTask"
}

```

It actually returns a process diagram (blob):

![92045835-dc15a380-edc4-11ea-85d0-4572c56f6888](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/9/9900a6e24c2434bcc315a56f537b2744bbaf8714.png)

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [September 1, 2020, 2:12pm UTC](https://forum.flowable.org/t/rest-api-get-diagram-for-a-process-instance/6594/2 "2020-09-01T14:12:19Z")

</div>

You are right @Robinyo.

This is in [this](https://github.com/flowable/flowable-engine/blob/master/docs/docusaurus/docs/bpmn/ch15-REST.md) place in the source code. Would you like to provide a PR with the improved text?

Cheers,  
Filip

---

<div class="post-metadata">

**Author:** ![Robinyo](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@Robinyo](https://forum.flowable.org/u/Robinyo)\
**Post date:** [September 2, 2020, 11:41pm UTC](https://forum.flowable.org/t/rest-api-get-diagram-for-a-process-instance/6594/3 "2020-09-02T23:41:34Z")

</div>

Hey @filiphr

See, pull request [#2566](https://github.com/flowable/flowable-engine/pull/2566)
