expose_workflow
Expose an Itential workflow as a REST API endpoint by creating an automation trigger with custom routing and input validation, enabling external consumption via API calls.
Instructions
Expose a workflow as an API endpoint.
Creates an automation and API endpoint trigger to expose a workflow for external consumption. This enables workflows to be called via REST API endpoints with custom routing and input validation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the workflow to expose | |
| project | No | The project where the workflow resides | |
| route_name | No | The API route name to assign to this endpoint | |
| endpoint_name | No | Set the name for the trigger endpoint | |
| endpoint_schema | No | Set the request schemd for the endpoint trigger | |
| endpoint_description | No | Set a description on the endpoint trigger |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The status of the expose operation |