# Set / Update Webhook

{% hint style="danger" %}

## Project Management API is disabled from Feb 1st, 2023 onwards, so any request made to this en point will fail

{% endhint %}

This API allows you to set / update webhooks against each project

## &#x20;Update Webhook

<mark style="color:green;">`POST`</mark> `https://pickyassist.com/app/api/v2/pm/update-webhook`

This API allows you to Update Webhook

#### Request Body

| Name                  | Type   | Description                                                                                                                                          |
| --------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| token                 | string | Your Master API Token for authentication                                                                                                             |
| project\_id           | number | Project Id in which the webhook need to configured                                                                                                   |
| global\_webhook       | string | <p>Pass the Webhook URL which needs to be configured for Global Webhook<br><br>Please note if you pass blank value then webhook will be removed </p> |
| event\_webhook        | string | <p>Pass the Webhook URL which needs to be configured for Event Wehook<br><br>Please note if you pass blank value then webhook will be removed  </p>  |
| smart\_reply\_webhook | string | <p>Pass the Webhook URL which needs to be configured fro Smart Replies <br><br>Please note if you pass blank value then webhook will be removed</p>  |

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

```
{
   "status":100,
   "message":"Success"
}
```

{% endtab %}
{% endtabs %}

## Response Variables&#x20;

| Variable | Type    | Description                                                                                                                                                         |
| -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| status   | numeric | <p>Status of the Request </p><p></p><p>100 = Sucess</p><p></p><p>Refer <a href="../references/status-and-error-codes">Error Codes</a> for complete Status Codes</p> |
| message  | string  | Error or detailed response Message details                                                                                                                          |

## Sample Request Body JSON

```javascript
{
   "token":"343434sdfdfdf",
   "project_id":733714,
   "global_webhook":"https://pickyassist.com/beta/test_webhook.php",
   "event_webhook":"https://pickyassist.com/beta/test_webhook.php",
   "smart_reply_webhook":"https://pickyassist.com/beta/test_webhook.php"
}
```

## Sample Response

```javascript
{
   "status":100,
   "message":"Success"
}
```
