cURL
curl --request POST \ --url https://api.example.com/api/runs/{run_id}/set-as-cached-workflow
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Extract parameters from a run’s prompt and create a templated workflow that can be cached in the related task.
Successful Response