Create a new webhook template
Request
POST https://{hostname}:{port}
/cli/webhookTemplate
Accept: {contentType}
Parameter | Type | Required | Description |
---|---|---|---|
Accept |
|
true |
This command takes a JSON request string or file. Use the following template for the request:
{
"body": "The webhook template body specified with Apache
Velocity template syntax",
"description": "Description (Optional)",
"name": "Name of the new webhook template",
"teamMappings": [{
"resourceRoleId": "Id of Resource Type to apply to
this team mapping (optional, can specify either this or
resourceRoleLabel",
"resourceRoleLabel": "Name of Resource Type to apply
to this team mapping (optional, can specify either this or
resourceRoleId",
"teamId": "ID of a team, either this field or
teamLabel are needed to specify a team",
"teamLabel": "Name of the team to map the webhook
template to, either this field or teamId are needed to
specify a team"
}],
"type": "Webhook template type [PROCESS_SUCCESS,
PROCESS_FAILURE, PROCESS_STARTED, APPROVAL_COMPLETED,
APPROVAL_FAILED, EXTERNAL_APPROVAL_COMPLETED,
EXTERNAL_APPROVAL_FAILED, SCHEDULED_PROCESS_NOT_STARTED,
TASK_CREATED]"
}
Related CLI command: createWebhookTemplate.