Skip to content
Skip to Content
Coder Docs

Edit chat queued message

PATCH
/api/v2/chats/{chat}/queue/{queuedMessage}

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

chat*string

Chat ID

Formatuuid
queuedMessage*integer

Queued message ID

Request Body

Edit chat queued message request

application/json
  1. body
content?array<>

Content replaces the queued content. An empty array is rejected.

editing?boolean

Editing begins (true) or ends (false) an edit of the message. A chat has at most one message under edit; beginning another ends the first. While the chat is paused, beginning an edit on another message returns 409. Ending the edit of a paused chat's head sends it.

model_config_id?string

ModelConfigID and ReasoningEffort require Content; sending either without it returns 400. Omitted values keep the stored ones.

Formatuuid
reasoning_effort?string

Response Body

No Content

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X PATCH \	"$CODER_URL/api/v2/chats/{chat}/queue/{queuedMessage}" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN" \	-H "Content-Type: application/json" \	-d '{  "content": [    {      "content": "string",      "end_line": 0,      "file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",      "file_name": "string",      "skill_name": "string",      "skill_source": "personal",      "start_line": 0,      "text": "string",      "type": "text",      "workspace_file_media_type": "string",      "workspace_file_name": "string",      "workspace_file_path": "string",      "workspace_file_size": 0,      "workspace_file_workspace_id": "74c05446-1c56-4543-82a9-03f2bf73b2ab"    }  ],  "editing": true,  "model_config_id": "f5fb4d91-62ca-4377-9ee6-5d43ba00d205"}'
Example Response204
Empty