# タグの並び替え

`POST /api/tag/reorder`

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

指定した順にタグを並び替えます。タグの削除と同じく、管理者とオーナーだけが使えます。

## リクエストボディ

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `ids` | body | integer[] | 必須 | タグの ID を、表示したい順に並べたものです (1,000 件まで)。 |

## リクエスト

```sh
curl -X POST "https://<space>.repsona.com/api/tag/reorder" \
  -H "Authorization: Bearer $REPSONA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": [
      75,
      76
    ]
  }'
```

## レスポンス

- 200: Reordered
- 400: Duplicate ids
- 401: Authentication is required
- 403: Admin only
- 404: Some tags do not belong to the space

## レスポンスの例

```json
{
  "ok": true
}
```
