# ステータスの並び替え

`POST /api/status/reorder`

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

プロジェクトのステータスの並び順を更新します。

## リクエストボディ

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `projectId` | body | integer | 必須 | ステータスを並び替えるプロジェクトの ID です。 |
| `open` | body | integer[] | 必須 | 未完了のステータスの ID を、表示したい順に並べたものです。 |
| `closed` | body | integer[] | 必須 | 完了扱いのステータスの ID を、表示したい順に並べたものです。未完了のステータスの後に表示されます。 |

## リクエスト

```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
    ]
  }'
```

## レスポンス

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

## レスポンスの例

```json
{}
```
