Skip to content
ricochet

Invoking Tasks

All tasks (e.g., R/Julia/Python scripts, R Markdown, or Quarto documents) can be invoked to trigger them to run at any time. Tasks are invoked via the ricochet content API at the endpoint POST /api/v0/content/{item-id}/invoke.

If a task is scheduled, you can invoke it outside of its schedule for one-off execution.

You can invoke a task directly from the ricochet UI by clicking the “Run now” button on the item overview page (e.g., https://try.ricochet.rs/tasks/{item-id}/overview).

You can use the ricochet CLI to invoke a task:

Terminal window
ricochet invoke 01JSZAXZ3TSTAYXP56ARDVFJCJ

Alternatively, you can invoke the task using the REST API endpoint:

Terminal window
curl -X POST \
"https://try.ricochet.rs/api/v0/content/01JSZAXZ3TSTAYXP56ARDVFJCJ/invoke" \
-H "Authorization: Key rico_AJFFXAaFVcw_LjrcKuB10gJ34cL9mS9mQu4oGjrafG56k"