Create webhook
Select
SaaS
Customer Managed
This API creates a webhook in commandcenter
- application/json
Request Body
- headers string required
Enter the name-value pairs separated by comma
- name string required
Name of the webhook
- secret string
Secret HMAC Authentication string
- ssl boolean required
Set this to true if Secret is added
- url string required
WebHook URL
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- errorCode integer
{
"errorCode": 0
}
POST /webhook
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/webhook' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"headers": "string",
"name": "string",
"secret": "string",
"ssl": true,
"url": "string"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/webhook' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"headers": "string",
"name": "string",
"secret": "string",
"ssl": true,
"url": "string"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/webhook' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"headers": "string",
"name": "string",
"secret": "string",
"ssl": true,
"url": "string"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/webhook' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"headers": "string",
"name": "string",
"secret": "string",
"ssl": true,
"url": "string"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/webhook' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"headers": "string",
"name": "string",
"secret": "string",
"ssl": true,
"url": "string"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/webhook' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"headers": "string",
"name": "string",
"secret": "string",
"ssl": true,
"url": "string"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/webhook' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"headers": "string",
"name": "string",
"secret": "string",
"ssl": true,
"url": "string"
}'