Add a webhook to an application
Request
POST https://{hostname}:{port}
/cli/application/{application}/webhooks/withCredentials
Accept: {contentType}
| Parameter | Type | Required | Description |
|---|---|---|---|
| application | string | true | ID or name of application |
| Parameter | Type | Required | Description |
|---|---|---|---|
| Accept |
|
true |
This command takes a JSON request string or file. Use the following template for the request:
{
"environments": ["Name or ID of environments"],
"proxyHost": "Proxy Host. Updating proxy host will unset
proxy username and password if those are not provided",
"proxyPassword": "Password to use for basic
authentication with the proxy",
"proxyPort": "Proxy Port. Updating proxy port will unset
proxy username and password if those are not provided",
"proxyUsername": "Username to use for basic
authentication with the proxy",
"url": "Url for the webhook",
"webhookTemplate": "Name or ID of the webhook template"
}
Related CLI command: addWebhookToApplicationWithCredentials.