Overview
Changes the order of the stories in this queue.
| HTTP method | POST | |
|---|---|---|
| URI template variables | ||
| Query parameters | force | Put true to order stories ignoring errors and return verbose results of operation, false by default. | 
| qkey | Password for key-locked queue. | |
| Request body | In the request body, supply data with the following structure: 
 | |
| HTTP response | 200 OK | |
| Response body | An ia:queue-stories resource. If force parameter is true, response will look like the following:  | |
| Available in | 
Description
Changes the order of the stories in this queue.
Examples
{
  "op": "order",
  "stories": ["queue1_story3", "queue1_story4"]
}For QUEUE1 with INVERTED attribute will result to:
| QUEUE1 | 
|---|
| queue1_story4 | 
| queue1_story3 | 
| queue1_story6 | 
| queue1_story5 | 
|   | 
|   | 
| queue1_story2 | 
| queue1_story1 | 
For QUEUE1 without INVERTED attribute will result to:
| QUEUE1 | 
|---|
| queue1_story1 | 
| queue1_story2 | 
|   | 
|   | 
| queue1_story5 | 
| queue1_story6 | 
| queue1_story3 | 
| queue1_story4 | 
Example
{
  "op": "order",
  "stories": ["queue1_story3", "queue1_story4"],
  "position": "queue1_story2"
}For QUEUE1 with INVERTED attribute will result to:
| QUEUE1 | 
|---|
| queue1_story6 | 
| queue1_story5 | 
|   | 
|   | 
| queue1_story2 | 
| queue1_story4 | 
| queue1_story3 | 
| queue1_story1 | 
For QUEUE1 without INVERTED attribute will result to:
| QUEUE1 | 
|---|
| queue1_story1 | 
|   | 
|   | 
| queue1_story2 | 
| queue1_story3 | 
| queue1_story4 | 
| queue1_story5 | 
| queue1_story6 |