# リアクションの削除

`DELETE /api/reaction`

URL: https://repsona.com/ja/api/delete-reaction

自分のリアクションを取り消します。付けていない場合も成功します。

## リクエストボディ

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `targetType` | body | project \| taskComment \| noteComment \| user \| activity \| introduction | 必須 | リアクションの対象の種類です。 |
| `targetId` | body | integer | 必須 | 対象の ID です。`targetType` に応じて、プロジェクトやコメント、ユーザーなどの ID を渡します。 |
| `text` | body | string | 必須 | リアクションの文字列です。通常は絵文字 1 つです (64 文字まで。前後の空白は取り除かれます)。 |

## リクエスト

```sh
curl -X DELETE "https://<space>.repsona.com/api/reaction" \
  -H "Authorization: Bearer $REPSONA_API_KEY"
```

## レスポンス

- 200: Updated reaction list
- 400: Empty or too long text
- 401: Authentication is required
- 403: Not a project member
- 404: Target not found

## レスポンスの例

```json
{
  "reactions": []
}
```
