--- title: "Update Scheduled Task" api: "PUT /api/v1/scheduled-task/{task_id}" description: "Updates a scheduled task with partial updates" --- Updates a scheduled task with partial updates. You can update any combination of the task configuration fields without affecting the others. ## Path Parameters ID of the scheduled task to update ## Request Body Instructions for what the agent should do Type of schedule: "interval" or "cron" Minutes between runs (required if schedule_type is "interval") Cron expression for scheduling (required if schedule_type is "cron") When to start the schedule (ISO 8601 format) When to end the schedule (ISO 8601 format) Whether the scheduled task is active Whether to use an adblocker Whether to use a proxy Whether to highlight elements on the page LLM model to use. Available options: gpt-4o, gpt-4o-mini, gpt-4.1, gpt-4.1-mini, o4-mini, o3, gemini-2.0-flash, gemini-2.0-flash-lite, gemini-2.5-flash-preview-04-17, gemini-2.5-flash, gemini-2.5-pro, claude-3-7-sonnet-20250219, claude-sonnet-4-20250514, llama-4-maverick-17b-128e-instruct Whether to save browser cookies and data between runs JSON schema for structured output ## Response Returns the updated scheduled task object with the same format as the Get Scheduled Task response. The unique identifier for the scheduled task Instructions for what the agent should do Whether to save browser cookies and data JSON schema for structured output LLM model to use Whether to use an adblocker Whether to use a proxy Whether to highlight elements on the page Type of schedule: "interval" or "cron" Minutes between runs Cron expression for scheduling When to start the schedule When the next run is scheduled When to end the schedule Whether the scheduled task is active When the scheduled task was created When the scheduled task was last updated ```python python import requests url = "https://api.browser-use.com/api/v1/scheduled-task/{task_id}" headers = {"Authorization": "Bearer "} payload = { "task": "Updated task description", "is_active": False } response = requests.request("PUT", url, headers=headers, json=payload) print(response.text) ``` ```bash curl curl --request PUT \ --url https://api.browser-use.com/api/v1/scheduled-task/{task_id} \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "task": "Updated task description", "is_active": false }' ``` ```json 200 { "id": "scheduled_task_1234567890abcdef", "task": "Updated task description", "save_browser_data": false, "structured_output_json": null, "llm_model": "gpt-4o", "use_adblock": true, "use_proxy": true, "highlight_elements": true, "schedule_type": "interval", "interval_minutes": 60, "cron_expression": null, "start_at": "2023-01-01T00:00:00Z", "next_run_at": "2023-01-01T01:00:00Z", "end_at": "2023-12-31T23:59:59Z", "is_active": false, "created_at": "2023-01-01T00:00:00Z", "updated_at": "2023-01-01T00:30:00Z" } ```