---
title: "Update Task by Name"
method: PUT
path: "/tasks/name/{task_name}"
tags: ["Tasks"]
---

# Update Task by Name

`PUT /tasks/name/{task_name}`

Update mutable fields for a task by its unique Name.

## Path parameters

- `task_name` string, required

## Request body

- UpdateTaskRequest
  - `task_metadata` object, nullable
  - `merge_params` object, nullable

## Response `200`

Successful Response

- Task
  - `id` string, required
  - `name` string, nullable
  - `status` 'CANCELED' | 'COMPLETED' | 'FAILED' | 'RUNNING' | 'INTERRUPTED' | 'TERMINATED' | 'TIMED_OUT' | 'DELETED'
  - `status_reason` string, nullable
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable
  - `cleaned_at` string, date-time, nullable
  - `params` object, nullable
  - `task_metadata` object, nullable

## Other responses

- `422` — Validation Error

## Changes

> 55 revisions in range; 4 could not be searched.

- **2026-07-16** `702bb2729fe2` — 1 warning
  - added the new `INTERRUPTED` enum value to the `status/anyOf[subschema #1: TaskStatus]/` response property for the response status `200`
- **2026-07-10** `fbecbdbd7dc5` — 1 info
  - added the new optional request property `merge_params`
- **2026-05-29** `12a516f4d9ac` — 1 info
  - added the optional property `cleaned_at` to the response with the `200` status

[Change history](https://skmtc.dev/scaleapi/apis/agentex-api/changes/tasks/name/:task_name/put.md)

---

[API](https://skmtc.dev/scaleapi/apis/agentex-api.md) · [All operations](https://skmtc.dev/scaleapi/apis/agentex-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scaleapi/agentex-api/revisions/1e0aaafd5780/schema)
