Update Legacy Agent Task
PUT/agents/browser-use/:agentId/tasks/:id
Update supplied writable task inputs while pending and unclaimed. A supplied secrets map replaces all task credentials; {} clears them, omission preserves them, and null is invalid. Secret columns and other inputs commit atomically. A winning worker claim or cancellation rejects input edits with 400; deleted or retention-purged tasks return 404. Webhook-only edits remain available on retained running/terminal tasks. Responses never return credentials or key lists. Success acknowledges stored input, not execution or authentication. These updates have no credential readback, conditional revision or idempotency guarantee. Requires agents:operate.
Request
Responses
- 200
- 400
- 403
- 404
- 429
- 500
- 503
Response Headers
Smaller configured principal/owner request window limit when enforcement is enabled.
Smaller remaining principal/owner allowance at admission.
Seconds until the Redis-server-time fixed request window resets.
Server-generated synchronous HTTP correlation; no worker lineage implied.
Invalid request body or query parameters. Field errors may be returned as arrays.
Response Headers
Server-generated synchronous HTTP correlation; no worker lineage implied.
Missing/invalid API key, insufficient scope, account eligibility, or communication policy denial.
Response Headers
Server-generated synchronous HTTP correlation; no worker lineage implied.
Resource not found or not accessible to this API key.
Response Headers
Server-generated synchronous HTTP correlation; no worker lineage implied.
request_quota_exceeded or wait_capacity_exceeded. Honor Retry-After; no new input was accepted.
Response Headers
Seconds until the suggested retry, not a readiness guarantee.
Server-generated synchronous HTTP correlation; no worker lineage implied.
Unexpected failure; JSON includes detail and an error_id for support.
Response Headers
Server-generated synchronous HTTP correlation; no worker lineage implied.
admission_unavailable or work_capacity_exceeded. Honor Retry-After and preserve protected-write keys. task_secrets_unavailable: credential encryption is unavailable; no task secret/input changes were committed. This error has no Retry-After readiness interval.
Response Headers
Seconds until the suggested retry, not a readiness guarantee.
Server-generated synchronous HTTP correlation; no worker lineage implied.