---
title: "Update queued prompt"
method: PATCH
path: "/api/projects/{projectId}/sessions/{sessionId}/threads/{threadId}/queue/{queueId}"
tags: ["Threads"]
---

# Update queued prompt

`PATCH /api/projects/{projectId}/sessions/{sessionId}/threads/{threadId}/queue/{queueId}`

Update queued prompt. Applies a partial update to the target resource.

## Path parameters

- `projectId` string, required
- `sessionId` string, required
- `threadId` string, required
- `queueId` string, required

## Request body

- UpdateQueuedPromptRequest — update Queued Prompt Request payload accepted by the API.
  - `runAfter` string, date-time, nullable — run After value for the update Queued Prompt Request object.

## Response `200`

Queue item

- QueuedPrompt — queued Prompt API object.
  - `id` string, required — Stable identifier for the object.
  - `createdAt` string, date-time — Time when the object was created.
  - `runAfter` string, date-time — run After value for the queued Prompt object.
  - `prompt` string, required — prompt value for the queued Prompt object.

---

[API](https://skmtc.dev/ibuildthecloud/apis/discobot-server-api.md) · [All operations](https://skmtc.dev/ibuildthecloud/apis/discobot-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ibuildthecloud/discobot-server-api/revisions/4de3fcd6be56/schema)
