---
title: "Update Task Run"
method: PATCH
path: "/api/task_runs/{id}"
tags: ["Task Runs"]
---

# Update Task Run

`PATCH /api/task_runs/{id}`

## Request

- The document declares no server URL.
- Auth: none declared

Updates a task run.

## Path parameters

- `id` string, uuid, required: The task run id

## Headers

- `x-prefect-api-version` string

## Request body

- TaskRunUpdate: Data used by the Prefect REST API to update a task run
  - `name` string

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/prefecthq/apis/prefect-unreleased-api.md) - [All operations](https://skmtc.dev/prefecthq/apis/prefect-unreleased-api/llms.txt) - [OpenAPI document](https://skmtc.dev/prefecthq/apis/prefect-unreleased-api/revisions/29ba6c4f8837?raw)
