Skip to main content
PATCH
/
v0
/
user
/
strategies
/
{user_strategy_id}
/
tasks
/
{task_id}
Update Agent Task
curl --request PATCH \
  --url https://api.sumvin.com/v0/user/strategies/{user_strategy_id}/tasks/{task_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "status": "<string>"
}
'
{
  "_links": {},
  "task": {
    "id": "<string>",
    "user_strategy_id": "<string>",
    "status": "queued",
    "trigger_type": "scheduled",
    "started_at": 123,
    "completed_at": 123,
    "result": {},
    "error_message": "<string>",
    "error_code": "<string>",
    "created_at": 123,
    "workflow_run_id": "<string>",
    "task": "<string>",
    "title": "<string>",
    "transactions": [
      {
        "id": "<string>",
        "type": "<string>",
        "status": "<string>",
        "direction": "<string>",
        "amount": "<string>",
        "asset_symbol": "<string>",
        "tx_hash": "<string>",
        "created_at": 123
      }
    ],
    "pints": [
      {
        "id": "<string>",
        "pint_uri": "<string>",
        "status": "<string>",
        "scopes": [
          "<string>"
        ],
        "enforcement_mode": "<string>",
        "expires_at": 123,
        "created_at": 123
      }
    ],
    "ipas": [
      {
        "id": "<string>",
        "intent_type": "<string>",
        "status": "<string>",
        "autonomy_level": "<string>",
        "created_at": 123,
        "raw_intent": "<string>",
        "completed_at": 123
      }
    ],
    "workflow_ipas": [
      {
        "id": "<string>",
        "intent_type": "<string>",
        "status": "<string>",
        "autonomy_level": "<string>",
        "created_at": 123,
        "raw_intent": "<string>",
        "completed_at": 123
      }
    ],
    "user_strategy": {
      "id": "<string>",
      "strategy": {
        "id": "<string>",
        "name": "<string>",
        "description": "<string>",
        "type": "<string>",
        "cron": "<string>",
        "base_prompt": "<string>",
        "created_at": 123,
        "event_topic": "<string>",
        "workflow_route": "<string>"
      },
      "connector": {
        "id": "<string>",
        "name": "<string>",
        "description": "<string>",
        "icon_url": "<string>",
        "auth_type": "<string>"
      },
      "is_active": true,
      "configuration": {},
      "created_at": 123,
      "event_filter": {}
    },
    "strategy": {
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "type": "<string>",
      "cron": "<string>",
      "base_prompt": "<string>",
      "created_at": 123,
      "event_topic": "<string>",
      "workflow_route": "<string>"
    }
  }
}

Headers

x-juno-orgid
string | null

Tenant org ID for multi-tenant auth

x-sumvin-token
string | null
x-juno-jwt
string | null

Path Parameters

user_strategy_id
string
required

Accepts either a user strategy ID (ustr-*) or a strategy ID (str-*). When a strategy ID is provided, the API resolves the authenticated user's corresponding user strategy automatically.

Examples:

"ustr-abc123def456"

"str-abc123def456"

task_id
string
required

Body

application/json
status
string
required

Target status for the agent task. Only 'next' is supported.

Allowed value: "next"

Response

Agent task status updated

HAL-style hypermedia links for navigation and available actions.

task
UserAgentTaskData · object
required