# タスクの本文の変更履歴

`GET /api/task/{taskId}/revisions`

URL: https://repsona.com/ja/api/get-task-taskid-revisions

本文を変更したアクティビティを新しい順に返します。

## パラメーター

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `taskId` | path | integer | 必須 | タスクの ID です。 |
| `beforeId` | query | integer |  | ページ送り用のカーソルです。前のレスポンスの `nextBeforeId` を渡すと、それより古い変更履歴を返します。省略すると最新から返します。 |
| `limit` | query | integer |  | 返す変更履歴の件数です (1 から 50 まで)。 |

## リクエスト

```sh
curl -X GET "https://<space>.repsona.com/api/task/{taskId}/revisions" \
  -H "Authorization: Bearer $REPSONA_API_KEY"
```

## レスポンス

- 200: Revisions
- 400: Invalid query parameters
- 401: Authentication is required
- 403: Not a project member
- 404: Task not found

## レスポンスの例

```json
{
  "revisions": [
    {
      "id": 22427,
      "createdAt": 1793662651455,
      "user": {
        "id": 1127,
        "name": "emma",
        "fullName": "Emma Carter",
        "avatarUrl": null,
        "state": "active",
        "extra": {
          "color": null
        }
      }
    },
    {
      "id": 22425,
      "createdAt": 1793662651434,
      "user": {
        "id": 1127,
        "name": "emma",
        "fullName": "Emma Carter",
        "avatarUrl": null,
        "state": "active",
        "extra": {
          "color": null
        }
      }
    }
  ],
  "nextBeforeId": null
}
```
