---
title: "Update task."
method: PUT
path: "/api/v1/projects/{projectId}/tasks/{taskId}"
tags: ["Tasks"]
---

# Update task.

`PUT /api/v1/projects/{projectId}/tasks/{taskId}`

## Request

- Base URL: `https://app.customgpt.ai`
- URL: `https://app.customgpt.ai/api/v1/projects/{projectId}/tasks/{taskId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/poll-the-people/apis/customgpt-ai/docs/api/v1/projects/:projectId/tasks/:taskId/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates task metadata, such as the display name. Use this to rename tasks for easier organization and identification. The display name is the only mutable field exposed via the API.

## Path parameters

- `projectId` integer, required
- `taskId` string, required

## Request body

- object
  - `name` string, required: New task name.

## Response `200`

Task renamed successfully.

- object
  - `status` 'error' | 'success': The status of the response
  - `data` Task
    - `id` string: Task ID
    - `project_id` integer: Agent ID this task belongs to
    - `name` string: Task name
    - `created_at` string, date-time: When the task was created
    - `updated_at` string, date-time: When the task was last updated

## Other responses

- `400`: Bad Argument
- `401`: API Token is either missing or invalid
- `404`: Agent not found
- `422`: Unsupported Argument
- `429`: Too many requests. You have exceeded your API rate limit.
- `500`: Internal Server Error

## Changes

- **2026-11-03** `77aab4354382`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/poll-the-people/apis/customgpt-ai/changes/api/v1/projects/:projectId/tasks/:taskId/put.md)

---

[API](https://skmtc.dev/poll-the-people/apis/customgpt-ai.md) - [All operations](https://skmtc.dev/poll-the-people/apis/customgpt-ai/llms.txt) - [OpenAPI document](https://skmtc.dev/poll-the-people/apis/customgpt-ai/revisions/77aab4354382?raw)
