---
title: "Set or clear a task's display title (session rename)"
method: PATCH
path: "/api/tasks/{id}/title"
tags: ["Tasks"]
---

# Set or clear a task's display title (session rename)

`PATCH /api/tasks/{id}/title`

Sets a human-facing display title override on a task. The sessions UI only reads this from root tasks (session list items), but titles on child tasks are harmless. Pass `title: null` (or an empty string) to clear the override and fall back to the task prompt.

## Path parameters

- `id` string, required

## Request body

- object
  - `title` string, nullable, required

## Response `200`

Title updated

## Other responses

- `404` — Task not found

## Changes

- **2026-07-26** `c2e88af89e66` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/tasks/:id/title/patch.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/92a1dcbd2fc7/schema)
