---
ai:
  exclude: true
search:
  tags:
    - Webhooks
    - PUT
seo:
  description: >-
    Update an existing webhook. The authenticated user must be… Reference for
    the PUT /rest/api/webhooks/{webhookId} endpoint in the Confluence Data
    Center API.
sidebar:
  label: ' Update webhook'
  badge: PUT
title: ' Update webhook'
type: openapi-operation
---
Update an existing webhook. The authenticated user must be an administrator to call this resource.

`PUT /rest/api/webhooks/{webhookId}`

**Request body** (`application/json`, required)

the representation of the updated values for the webhook

- `name` (string)
- `configuration` (object)
- `url` (string)
- `credentials` (RestWebhookCredentials)
- `statistics` (object)
- `events` (string[])
- `active` (boolean)
- `scopeType` (string)
- `sslVerificationRequired` (boolean)

Request body example:

```json
{
  "name": "string",
  "configuration": {},
  "url": "string",
  "credentials": {
    "username": "string",
    "password": "string"
  },
  "statistics": {},
  "events": [
    "string"
  ],
  "active": true,
  "scopeType": "string",
  "sslVerificationRequired": true
}
```

**Responses**

- `200` — returns a webhook.
- `401` — returned if the currently authenticated user has insufficient permissions to update a webhook.
- `404` — returned if the webhook does not exist.

Response example, 200:

```json
{
  "name": "string",
  "configuration": {},
  "url": "string",
  "credentials": {
    "username": "string",
    "password": "string"
  },
  "events": [
    "string"
  ],
  "active": true,
  "scopeType": "string",
  "sslVerificationRequired": true
}
```
