Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Update webhook

Update an existing webhook. The authenticated user must be an administrator to call this resource.

PUT/rest/api/webhooks/{webhookId}
Path parameters
webhookIdstringrequired

the existing webhook id

Request body
requiredapplication/json

the representation of the updated values for the webhook

namestring
configurationobject
urlstring
credentialsRestWebhookCredentials
Show properties
usernamestring
passwordstring
statisticsobject
Show properties
object
eventsstring[]
activeboolean
scopeTypestring
sslVerificationRequiredboolean
Responses
200

returns a webhook.

namestring
configurationobject
urlstring
credentialsRestWebhookCredentials
Show properties
usernamestring
passwordstring
eventsstring[]
activeboolean
scopeTypestring
sslVerificationRequiredboolean
401

returned if the currently authenticated user has insufficient permissions to update a webhook.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
404

returned if the webhook does not exist.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Parameters
Bodyapplication/json
Request
curl -X PUT 'http://example.com:7990/confluence/rest/api/webhooks/string' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "configuration": {},
  "url": "string",
  "credentials": {
    "username": "string",
    "password": "string"
  },
  "statistics": {},
  "events": [
    "string"
  ],
  "active": true,
  "scopeType": "string",
  "sslVerificationRequired": true
}'
Response
{
  "name": "string",
  "configuration": {},
  "url": "string",
  "credentials": {
    "username": "string",
    "password": "string"
  },
  "events": [
    "string"
  ],
  "active": true,
  "scopeType": "string",
  "sslVerificationRequired": true
}

Was this page helpful?