updateWebhookTemplate
Update a webhook template
Format
udclient [global-args...] [global-flags...]
updateWebhookTemplate [parameters] [JSON file]
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
webhookTemplate | string | true | Name or ID of the webhook template to update |
Template
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)",
"id": "ID of the webhook template to update",
"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 REST command: Update a webhook template.