# Confusion regarding priority argument

**URL:** <https://discourse.orthanc-server.org/t/confusion-regarding-priority-argument/5099>\
**Category:** General\
**Tags:** rest-api\
**Created:** [August 9, 2024, 7:39pm UTC](https://discourse.orthanc-server.org/t/confusion-regarding-priority-argument/5099 "2024-08-09T19:39:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmrivera](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/j/d78d45/32.png) [@jmrivera](https://discourse.orthanc-server.org/u/jmrivera)\
**Post date:** [August 9, 2024, 7:39pm UTC](https://discourse.orthanc-server.org/t/confusion-regarding-priority-argument/5099/1 "2024-08-09T19:39:26Z")

</div>

Hello to everyone,

I want to priorize a job using the “priority” argument in a HTTP request. In the [reference API](https://orthanc.uclouvain.be/api/#tag/Networking/paths/~1modalities~1%7Bid%7D~1store/post) it says “_the lower the value, the higher the priority_”, but in the [orthanc book](https://orthanc.uclouvain.be/book/users/advanced-rest.html#jobs-priority) it states that it “_picks the jobs with the highest priority […] use negative number to lower the priority below 0_”

I am confused on which values to use in order to priorize a job, does anyone know?

Thank you for your time

---

<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:** [August 26, 2024, 1:38pm UTC](https://discourse.orthanc-server.org/t/confusion-regarding-priority-argument/5099/2 "2024-08-26T13:38:34Z")

</div>

Hi @jmrivera

Thanks for pointing that out !  
I have [updated the reference API source](https://orthanc.uclouvain.be/hg/orthanc/rev/c93ca8047550).

“Higher the number, higher the priority” is the right statement.

Alain.
