# user Block

## 유저 정지시키기

<mark style="color:green;">`POST`</mark> `h ttp://rightnow.p-e.kr/admin/block/user`

#### Request Body

| Name                                           | Type   | Description                             |
| ---------------------------------------------- | ------ | --------------------------------------- |
| block\_email<mark style="color:red;">\*</mark> | String |                                         |
| block\_day<mark style="color:red;">\*</mark>   |        | '3'/ '7'/ '15'/ '30'/ '영구정지'/'삭제'(신고삭제) |

{% tabs %}
{% tab title="200: OK 유저 정지 요청 성공" %}

```javascript
{
    "data": {
        "blockedUserInfo": {
            "email": "user1@naver.com",
            "nick_name": "꼬리",
            "profile_image": null,
            "role": "ADMIN",
            "social_login": "original",
            "is_block": "Y",
            "block_date": "2022-01-22",
            "createdAt": "2022-01-18 22:59:50",
            "updatedAt": "2022-01-19 00:15:29"
        }
    },
    "message": "ok"
}
```

{% endtab %}

{% tab title="500: Internal Server Error 서버 에러" %}

```javascript
{
    'message':'err'
}
```

{% endtab %}

{% tab title="404: Not Found 유저 이메일이 존재하지 않음" %}

```javascript
{
    'message':'no exists email'
}
```

{% endtab %}

{% tab title="404: Not Found 유저가 신고되지 않음" %}

```javascript
{
    'message':'user not reported'
}
```

{% endtab %}

{% tab title="409: Conflict 이미 정지된 메시지임" %}

```javascript
{
    'message':'already blocked message'
}
```

{% endtab %}
{% endtabs %}
