# Issue/typo with openapi C-GET specification?

**URL:** https://discourse.orthanc-server.org/t/issue-typo-with-openapi-c-get-specification/5641
**Category:** General
**Tags:** rest-api
**Created:** [March 18, 2025, 2:33pm UTC](https://discourse.orthanc-server.org/t/issue-typo-with-openapi-c-get-specification/5641 "2025-03-18T14:33:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gacou54](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@gacou54](https://discourse.orthanc-server.org/u/gacou54)
#### Post date: [March 18, 2025, 2:33pm UTC](https://discourse.orthanc-server.org/t/issue-typo-with-openapi-c-get-specification/5641/1 "2025-03-18T14:33:20Z")

</div>

Bonjour,

I was implementing the new C-GET feature in PyOrthanc and was wondering if there was an error in the openapi documentation ([Orthanc REST API](https://orthanc.uclouvain.be/api/#tag/Networking/paths/~1modalities~1%7Bid%7D~1get/post)).

I was able to get the endpoint working with a request body that contains `Level` and `Resources`, but `Level` doesn’t seem to be in the openapi spec, and I don’t know what `Query` refers to. Maybe I missed something?

I ended up having a request body that looks like this:

```auto
{
  "Level": "Study",
  "Resources": [{"StudyInstanceUID": "<study-instance-uid>"}]
}

```

Thanks in advance!  
Gabriel

---

<div class="post-metadata">

### Author: ![alainmazy](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/alainmazy/32/1576_2.png) [@alainmazy](https://discourse.orthanc-server.org/u/alainmazy)
#### Post date: [March 20, 2025, 5:53pm UTC](https://discourse.orthanc-server.org/t/issue-typo-with-openapi-c-get-specification/5641/2 "2025-03-20T17:53:27Z")

</div>

Bonjour @gacou54

Yes, you are right, I forgot to update the doc when the development was completed.

I have [fixed it now](https://orthanc.uclouvain.be/hg/orthanc/rev/6dbf5f4a6159).

Here is the updated openapi json file. I have not published it yet since it also contains a few other modifications that have not yet been released in Orthanc …

[orthanc-openapi.json](https://discourse.orthanc-server.org/uploads/short-url/dfsjkmb9i7phP3gLba1WViXoxhI.json) (715.7 KB)

Best regards,

Alain

---

<div class="post-metadata">

### Author: ![gacou54](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@gacou54](https://discourse.orthanc-server.org/u/gacou54)
#### Post date: [March 20, 2025, 6:01pm UTC](https://discourse.orthanc-server.org/t/issue-typo-with-openapi-c-get-specification/5641/3 "2025-03-20T18:01:23Z")

</div>

Bonjour @alainmazy,

Thank you very much! I fixed the docstring on my side regarding the C-GET for the next pyorthanc release.

Best,  
Gabriel
