# Reorder statuses

`POST /api/status/reorder`

URL: https://repsona.com/api/post-status-reorder

Updates lane ordering for project statuses.

## Request body

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `projectId` | body | integer | required | The ID of the project whose statuses are reordered. |
| `open` | body | integer[] | required | IDs of the open (not done) statuses in the order they should appear. |
| `closed` | body | integer[] | required | IDs of the closed (done) statuses in the order they should appear. Shown after the open statuses. |

## Request

```sh
curl -X POST "https://<space>.repsona.com/api/status/reorder" \
  -H "Authorization: Bearer $REPSONA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "projectId": 253,
    "open": [
      166,
      172
    ],
    "closed": [
      168
    ]
  }'
```

## Responses

- 200: Status ordering updated
- 400: Invalid request payload
- 401: Authentication is required
- 403: The requested statuses do not belong to the project

## Example response

```json
{}
```
