Skip to main content
PUT
/
api
/
tasks
/
{task_id}
Update Task By Id
curl --request PUT \
  --url https://api.example.com/api/tasks/{task_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "model": "<string>",
  "provider": "openai",
  "webhook_url": "<string>",
  "response_format": "<string>",
  "json_schema": "<string>",
  "cached_workflow": {},
  "use_cached_workflow": true
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Path Parameters

task_id
integer
required

Body

application/json

Request model for updating a task

prompt
string | null

The task prompt

Minimum string length: 3
model
string | null

The model to use

provider
enum<string> | null

The provider to use

Available options:
openai,
deepseek,
anthropic,
google,
groq,
mistral,
together
webhook_url
string | null

Webhook URL for notifications

response_format
string | null

Response format (text or json)

json_schema
string | null

JSON schema for structured output

cached_workflow
Cached Workflow · object

Cached workflow definition

use_cached_workflow
boolean | null

Whether to use cached workflow

Response

Successful Response