> For the complete documentation index, see [llms.txt](https://lumiwavelab.gitbook.io/inno-platform-doc-kr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lumiwavelab.gitbook.io/inno-platform-doc-kr/reference/api-reference/inno-market/webhook/webhook-2.md).

# WebHook 활성 상태 수정

등록되어 있는 webhook리스트 중 선택 적으로 활성화를 변경 할 수 있습니다. ‘is\_enabled’ 정보가 false 이면 NFT 관련 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 %} |                   |                    |
