Create a notification action
POST {{baseUrl}}/workflow_actions/notification_actions
Create a notification action
Request Body
{"workflow_action"=>{"workflow_id"=>"33f072dd-13b4-41e1-8ea0-16f2a59b57c8", "description"=>"Send a notification to a group of users.", "email_attribute_id"=>"33f072dd-13b4-41e1-8ea0-16f2a59b57c8", "email_addresses"=>["johndoe@gmail.com", "janedoe@gmail.com"], "archived"=>false, "workflow_action_email_attributes"=>{"id"=>"33f072dd-13b4-41e1-8ea0-16f2a59b57c8", "workflow_action_id"=>"33f072dd-13b4-41e1-8ea0-16f2a59b57c8", "email_id"=>"33f072dd-13b4-41e1-8ea0-16f2a59b57c8", "type"=>"StandardEmail"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"workflow_action":{"workflow_id":"33f072dd-13b4-41e1-8ea0-16f2a59b57c8","description":"Require approval from another user or a group of users with a specific role.","page_id":"33f072dd-13b4-41e1-8ea0-16f2a59b57c8","add_requester_as_owner":true,"email_attribute_id":"33f072dd-13b4-41e1-8ea0-16f2a59b57c8","email_addresses":["johndoe@gmail.com","janedoe@gmail.com"],"new_status":"Active, Inactive, On Leave, Terminated","archived":false,"skippable":false,"requires_comment":false}}