Update a webhook template

Request

PUT https://{hostname}:{port}
    /cli/webhookTemplate?{parameters}
Accept: application/json
Table 1. Request parameters
Parameter Type Required Description
webhookTemplate string true Name or ID of the webhook template to update
Table 2. Header parameters
Parameter Type Required Description
Accept application/json 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)",
  "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 CLI command: updateWebhookTemplate.