---
# System prepended metadata

title: '`POST` /api/tweets/:id/unlike'
tags: [API-doc]

---

# `POST` /api/tweets/:id/unlike

### Feature

對指定推文按 unlike 

### Parameters

|Name|Description|
|----|-----------|
|`id`|要被 unlike 的推文的`id`|

### Request Body

N/A

### Response Body

<font color="#008B8B">Success | code: 200</font>

```json
{
    "status": "success"
}
```
<font color="#DC143C">Failure | code: 404</font>
使用者未 like 該則貼文 or 網址列帶過來的 TweetId param 不存在

```json
{
    "status": "error",
    "message": "You have not liked the tweet or the tweet dose not exist."
}
```

\
\
[回到首頁](https://hackmd.io/@2022-Oct-Twitter/Hk9m-Pn-j/%2Feax7gnB7R3KcclDqf27iDA%3Fview)

###### tags: `API-doc`