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

Create webhook

Create a webhook via the URL. The authenticated user must be an administrator to call this resource.

POST/rest/api/webhooks
Request body
requiredapplication/json

the webhook to be created.

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

returns a created webhook.

createdDatestring<date-time>
namestring
idinteger<int32>
activeboolean
configurationobject
scopeWebhookScope
Show properties
idstring
min length 0 · max length 255
typestring
min length 0 · max length 255
urlstring
credentialsWebhookCredentials
Show properties
usernamestring
passwordstring
eventsWebhookEvent[]
Show properties
Array of WebhookEvent
idstring
i18nKeystring
updatedDatestring<date-time>
sslVerificationRequiredboolean
400

returned if The webhook parameters were invalid or not supplied.

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

The currently authenticated user has insufficient permissions to create webhooks.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Bodyapplication/json
Request
curl -X POST 'http://example.com:7990/confluence/rest/api/webhooks' \
  -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
{
  "createdDate": "2019-08-24T14:15:22Z",
  "name": "string",
  "id": 0,
  "active": true,
  "configuration": {},
  "scope": {
    "id": "string",
    "type": "string"
  },
  "url": "string",
  "credentials": {
    "username": "string",
    "password": "string"
  },
  "events": [
    {
      "id": "string",
      "i18nKey": "string"
    }
  ],
  "updatedDate": "2019-08-24T14:15:22Z",
  "sslVerificationRequired": true
}

Was this page helpful?