# PUT Update a webhook

Update an existing webhook's topic, URL, or metadata.

- Source URL: https://www.signcustomiser.com/help/api/put-update-a-webhook/
- Markdown URL: https://www.signcustomiser.com/help/api/put-update-a-webhook.md
- Group: Webhooks
- Method: PUT
- Path: /api/v2/webhooks/{webhook_id}
- Auth: Bearer token

## Path parameters

- webhook_id (string, required): The ID of the webhook. Example: 1

## Body parameters

- topic (string, optional): No description provided.
- url (string, optional): No description provided.
- meta (array, optional): No description provided.

## Request body example

```json
{
  "topic": "product:created",
  "url": "https://example.com/webhook",
  "meta": []
}
```

## cURL example

```bash
curl https://web.signcustomiser.com/api/v2/webhooks/1 \
  --request PUT \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
  "topic": "product:created",
  "url": "https://example.com/webhook",
  "meta": []
}'
```

## Response examples

### 200 PUT 200 example 1

```json
{
  "webhook": {
    "webhook_id": 1,
    "topic": "order:created",
    "url": "https://example.com/webhook-updated",
    "status": "active",
    "secret": "abc123...",
    "meta": {},
    "created_at": "2024-01-01T00:00:00.000000Z",
    "updated_at": "2024-01-02T00:00:00.000000Z"
  }
}
```
