---
title: "Reorder workflow statuses"
method: PATCH
path: "/api/workspaces/{workspaceId}/workflow-statuses/reorder"
tags: ["Workflow Statuses"]
---

# Reorder workflow statuses

`PATCH /api/workspaces/{workspaceId}/workflow-statuses/reorder`

## Request

- Base URL: `https://hiveship.app/api`
- URL: `https://hiveship.app/api/api/workspaces/{workspaceId}/workflow-statuses/reorder`
- Auth: API key in cookie `hiveship_access`

## Request body

- object
  - `orderedIds` string[], required

## Response `200`

Reordered workflow statuses

- object
  - `success` boolean, required
  - `data` object[], required
    - `id` string, cuid, required
    - `name` string, required
    - `value` string, required
    - `color` string, required
    - `category` 'BACKLOG' | 'UNSTARTED' | 'STARTED' | 'COMPLETED' | 'CANCELLED', required
    - `sortOrder` number, required
    - `isDefault` boolean, required
    - `isVisible` boolean, required
    - `workspaceId` string, cuid, required
    - `delegateAgentId` string, cuid, nullable, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required

## Other responses

- `400`: Validation error

---

[API](https://skmtc.dev/hiveship/apis/hiveship-api.md) · [All operations](https://skmtc.dev/hiveship/apis/hiveship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hiveship/apis/hiveship-api/revisions/73d3e26544e4?raw)
