Skip to content
Skip to Content
Coder Docs

Update user chat custom prompt

PUT
/api/v2/chats/config/user-prompt

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Request Body

Request body

application/json
  1. body
custom_prompt?string

Response Body

OK

application/json
  1. response
custom_prompt?string

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

curl -X PUT \	"$CODER_URL/api/v2/chats/config/user-prompt" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN" \	-H "Content-Type: application/json" \	-d '{  "custom_prompt": "string"}'
Example Response200
{  "custom_prompt": "string"}