# WebHook 활성 상태 수정

<mark style="color:orange;">`PUT`</mark> `https://{market-domain}/v1.0/app/nft/webhook`

#### Headers

| Name                                            | Type   | Description                 |
| ----------------------------------------------- | ------ | --------------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer {{app-access-token}} |

#### Request Body

| Name                                          | Type  | Description      |
| --------------------------------------------- | ----- | ---------------- |
| webhook\_id<mark style="color:red;">\*</mark> | int64 | 등록된 webhook 의 ID |
| is\_enabled                                   | bool  | 변경될 활성 상태        |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "return": 0,
    "message": "success"
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Example Curl" %}
curl --location --request PUT '<https://localhost:51071/v1.0/app/nft/webhook'\\>
\--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5....'\
\--header 'Content-Type: application/json'\
\--data-raw '{ "webhook\_id" : 8, "is\_enabled" : true }'
{% endtab %}

{% tab title="Response Value" %}

{% endtab %}

{% tab title="Result Code" %}

| return        | message           | desc               |
| ------------- | ----------------- | ------------------ |
| 0             | success           | 성공                 |
| 20004         | Invalid jwt token | 유효하지 못한 auth token |
| 64062         | update fail       | 업데이트에 실패 했습니다.     |
| {% endtab %}  |                   |                    |
| {% endtabs %} |                   |                    |
