Move a queued message
reorder_queued_message
Moves a message that is still waiting in a site's queue so it runs earlier or later.
Name its new neighbors by their Id. beforeId is the entry it should sit after, and afterId the entry it should sit before. Send at least one of them, and send both to drop it exactly between them.
Sending only one is reliable at the ends of the queue: beforeId naming the last entry moves it to the end, and afterId naming the first entry moves it to the front. Anywhere in the middle, send both. Both have to be entries that are still queued, so read list_queued_messages first.
Anyone in the workspace can move any queued message, not only their own, and moving yours ahead of somebody else's delays theirs. See Reorder.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site id, from list_sites or get_site. |
itemId |
string | Yes | The Id of the queued message to move, exactly as list_queued_messages reported it. |
beforeId |
string | No | The Id of the queued message this one should sit after. Send this, afterId or both. |
afterId |
string | No | The Id of the queued message this one should sit before. Send this, beforeId or both. |