Create a Workflow Action Webhook
POST {{base_url}}/Workflow/dlgWorkflowActionWebhook
Use this endpoint to create a web service on a workflow.
Specify the data for the new workflow action webhook in the request body.
Request
A successful call status of 201 Created returns the JSON representation for the newly created workflow action webhook and a call status of 400 Bad Request returns the JSON representation for the created workflow action webhook with a duplicate number.
Request Body
[{"name"=>"ActionID", "value"=>"{{string}}", "datatype"=>"string"}, {"name"=>"WebhookURL", "value"=>"{{string}}", "datatype"=>"string"}, {"name"=>"AuthUsername", "value"=>"{{string}}", "datatype"=>"string"}, {"name"=>"AuthPassword", "value"=>"{{string}}", "datatype"=>"string"}, {"name"=>"ClientID", "value"=>"{{string}}", "datatype"=>"string"}, {"name"=>"ClientSecret", "value"=>"{{string}}", "datatype"=>"string"}, {"name"=>"RetryCount", "value"=>"{{integer}}", "datatype"=>"string"}, {"name"=>"Timeout", "value"=>"{{integer}}", "datatype"=>"string"}, {"name"=>"RunAfterSave", "value"=>"{{string}}", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | Required. |
The type of content supported by the API endpoint. |
| Authorization
| string | | Required.
The type of authorization supported by the API endpoint. |
RESPONSES
status: Created
[{"ActionID":"123asd456fgh123hjk","WebhookURL":"Test","AuthUsername":"Ann","AuthPassword":"********************","ClientID":"1","ClientSecret":"********************","RetryCount":10,"Timeout":10,"RunAfterSave":"N"}]