Skip to main content
POST
/
v1
/
projects
/
{project}
:testWebhook
cURL
curl --request POST \
  --url https://api.example.com/v1/projects/{project}:testWebhook \
  --header 'Content-Type: application/json' \
  --data '
{
  "project": "<string>",
  "webhook": {
    "type": "TYPE_UNSPECIFIED",
    "title": "<string>",
    "url": "<string>",
    "name": "<string>",
    "directMessage": true,
    "notificationTypes": [
      "TYPE_UNSPECIFIED"
    ]
  }
}
'
{
  "error": "<string>"
}

Path Parameters

project
string
required

The project id.

Body

application/json
project
string
required

The name of the project which owns the webhook to test. Format: projects/{project}

webhook
object
required

The webhook to test. Identified by its url.

Response

OK

error
string

The result of the test, empty if the test is successful.