Closed mattp0123 closed 1 year ago
I want to trigger my workflow by requesting the REST API endpoint of my Digdag server. So I follow this docs: https://docs.digdag.io/api/ To trigger a workflow, I have to request the PUT /api/attempts endpoint with body like this:
PUT /api/attempts
{ workflowId: <my_workflow_id>, sessionTime: <session_time>, params: {} }
Could it be like the Digdag client mode command:
digdag start my-project my-workflow --session now
Something like this?
{ workflow: { name: 'my_workflow', project: 'my_project' }, sessionTime: 'now', params: {} }
I think the REST API docs could be more detailed BTW.
You can get <my_workflow_id> with following APIs
<my_workflow_id>
I want to trigger my workflow by requesting the REST API endpoint of my Digdag server. So I follow this docs: https://docs.digdag.io/api/ To trigger a workflow, I have to request the
PUT /api/attempts
endpoint with body like this:Could it be like the Digdag client mode command:
Something like this?
I think the REST API docs could be more detailed BTW.