---
title: "Reorder the unlocked future posts in the Hive queue among the times the queue already holds, so nothing moves to a new hour. Preview it first, then apply the exact plan you previewed."
method: POST
path: "/api/v1/tools/shuffle_queue"
---

# Reorder the unlocked future posts in the Hive queue among the times the queue already holds, so nothing moves to a new hour. Preview it first, then apply the exact plan you previewed.

`POST /api/v1/tools/shuffle_queue`

## Request

- Base URL: `https://hivepublish.com`
- URL: `https://hivepublish.com/api/v1/tools/shuffle_queue`
- Auth: HTTP bearer

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `action` 'preview' | 'apply', required: preview returns the plan and changes nothing; apply commits the plan you previewed.
  - `seed` string: The seed from the preview. Send it back with apply so the same order is applied.
  - `digest` string: The digest from the preview. Hive refuses apply if the queue changed since.

## Response `200`

Tool result

- ToolResult
  - `data` unknown, required
  - `meta` object, required
    - `tool` string
    - `workspaceId` string, uuid

## Other responses

- `400`: Invalid input
- `401`: Missing or invalid credential
- `403`: Missing workspace scope, role permission, or plan entitlement
- `409`: Idempotency conflict, replay, or request still in progress
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/hivepublish/apis/hive-developer-api.md) · [All operations](https://skmtc.dev/hivepublish/apis/hive-developer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hivepublish/apis/hive-developer-api/revisions/b440c763583e?raw)
