Skip to content

Commit

Permalink
Update API.md
Browse files Browse the repository at this point in the history
  • Loading branch information
frikky authored May 8, 2024
1 parent 0a4f299 commit 9f16973
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -686,12 +686,18 @@ curl https://shuffler.io/api/v1/workflows/schedules -H "Authorization: Bearer AP
```

### Schedule a workflow
Schedule a workflow to run at certain intervals. The node in the workflow must exist.
Schedule a workflow to run at certain intervals. The node in the workflow must exist, and that the **execution argument MUST be a string**.

Methods: POST

```
curl -XPOST https://shuffler.io/api/v1/workflows/{workflow_id}/schedule -H "Authorization: Bearer APIKEY" -d '{"name":"Schedule","frequency":"*/25 * * * *","execution_argument":"{\"example\": {\"json\": \"is cool\"}}","environment":"cloud","id":"cabaaffc-db53-4e19-ad8b-4f5fc0dc49c9"}'
curl -XPOST https://shuffler.io/api/v1/workflows/{workflow_id}/schedule -H "Authorization: Bearer APIKEY" -d '{
"name":"Schedule",
"frequency":"*/25 * * * *",
"execution_argument": "{\"example\": {\"json\": \"is cool\"}}",
"environment":"cloud",
"id":"cabaaffc-db53-4e19-ad8b-4f5fc0dc49c9"
}'
```


Expand Down

0 comments on commit 9f16973

Please sign in to comment.