Overview
Move stories from the queue with the given ID to a queue with destination ID.
HTTP method |
POST |
|
---|---|---|
URL template parameters |
id |
The id of the queue. |
Query parameters |
force |
Put true to move 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 |
||
Response body |
An ia:queue-stories resource. If force parameter is true, response will look like the following:
|
|
Available in |
Description
Move stories from the queue with the given ID to a queue with destination ID.
Examples
{
"op": "move",
"stories": ["queue1_story5", "queue1_story6"],
"destination": "QUEUE2"
}
For QUEUE2 with INVERTED attribute will result to:
QUEUE1 | QUEUE2 |
---|---|
… |
queue1_story6 |
|
queue1_story5 |
|
queue2_story4 |
… |
… |
For QUEUE2 without INVERTED attribute will result to:
QUEUE1 | QUEUE2 |
---|---|
… |
… |
|
queue2_story4 |
|
queue1_story5 |
… |
queue1_story6 |
Example:
{
"op": "move",
"stories": ["queue1_story5", "queue1_story6"],
"destination": "QUEUE2",
"position": "queue2_story3"
}
For QUEUE2 with INVERTED attribute will result to:
QUEUE1 | QUEUE2 |
---|---|
… |
… |
queue1_story4 |
queue2_story3 |
|
queue1_story6 |
|
queue1_story5 |
queue1_story7 |
queue2_story2 |
… |
… |
For QUEUE2 without INVERTED attribute will result to:
QUEUE1 | QUEUE2 |
---|---|
… |
… |
queue1_story4 |
queue2_story2 |
|
queue1_story5 |
|
queue1_story6 |
queue1_story7 |
queue2_story3 |
… |
… |