v60

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-0283227863.6 KB
Agents

Update an agent

Update an agent

post/v1/agents/{workflow_id}

Path parameters

workflow_idstring required

The ID of the agent to update. Starts with wpid_.

Example:wpid_123

The ID of the agent to update. Starts with wpid_.

Headers

x-api-keystring nullable

Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.

Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.

Request body

yaml_definitionstring nullable

Workflow definition in YAML format

Response

Successfully updated agent

workflow_idstring required
organization_idstring required
titlestring required
workflow_permanent_idstring required
versioninteger required
is_saved_taskboolean required
is_templateboolean
descriptionstring nullable
webhook_callback_urlstring nullable
totp_verification_urlstring nullable
totp_identifierstring nullable
persist_browser_sessionboolean
pin_saved_session_ipboolean
browser_profile_idstring nullable
browser_profile_keystring nullable
modelobject nullable
status'published' | 'draft' | 'auto_generated' | 'importing' | 'import_failed'
max_screenshot_scrollsinteger nullable
max_elapsed_time_minutesinteger nullable
extra_http_headersobject nullable
cdp_connect_headersobject nullable
run_withstring
ai_fallbackboolean
cache_keystring nullable
adaptive_cachingboolean
enable_self_healingboolean
code_versioninteger nullable
generate_script_on_terminalboolean
run_sequentiallyboolean nullable
sequential_keystring nullable
folder_idstring nullable
import_errorstring nullable
created_bystring nullable
edited_bystring nullable
copilot_authoredboolean
created_atstring date-time required
modified_atstring date-time required
deleted_atstring date-time nullable
agent_idstring required

Alias of workflow_permanent_id — the stable agent identifier (starts with wpid_).