SnozeDevelopers
API referenceAgent

Update an agent chat's title, model, or appearance

Applies a partial edit to one of the caller's own chats and returns the updated chat. Requires a Clerk session for a workspace member with the `ai:write` permission; a chat that does not exist, or belongs to another user, is reported as not found.

PATCH
/v1/workspaces/{workspaceId}/agent/chats/{chatId}

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Path Parameters

workspaceId*string
chatId*string

Request Body

application/json
  1. body
title?string|null|null
model?string|null|null
appearance?|null

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X PATCH 'https://api.snoze.dev/v1/workspaces/string/agent/chats/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "id": "string",    "workspaceId": "string",    "title": "string",    "parentSessionId": "string",    "model": "string",    "appearance": {      "shape": "box",      "color": "string",      "accentColor": "string",      "eyes": "dot",      "eyePlacement": "centered",      "motion": "still",      "finish": "flat",      "gradientColor": "string",      "glowColor": "string",      "intensity": "subtle",      "cosmetics": {        "head": "none",        "face": "none"      }    },    "status": "idle",    "runningMessageId": "string",    "streamIdentity": {      "turnId": "string",      "messageId": "string"    },    "lastError": "string",    "background": {      "enabled": true,      "continuations": 0,      "deadlineAt": 0    },    "createdAt": "string",    "updatedAt": "string"  }}