# 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="/pages/-LlMOaMoytoRH2cy9J06">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"
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.pickyassist.com/api-documentation-v2/project-management-api/set-update-webhook.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
