Skip to main content
PATCH
Edit a topic

Authorizations

Authorization
string
header
required

A Searchable API key, created under Settings → Workspace → Integrations. Send as Authorization: Bearer sea_xxxxx. Every key carries one or more scopes (read, write, admin) and may optionally be bound to a single project — see Getting started.

Path Parameters

projectId
string<uuid>
required

The project id.

topicId
string<uuid>
required

The topic's id.

Body

application/json

At least one field.

name
string

The topic's new name.

Required string length: 1 - 200
seedKeyword
string

The keyword the topic is built around.

Maximum string length: 200
status
enum<string>

archived archives the topic: it comes off every prompt it was on, and restoring it later does not put it back on them. active restores an archived topic.

Available options:
active,
archived

Response

Topic updated.

success
boolean
required
topic
object
required

The prompt_topics row createTopic creates and updateTopic returns — the raw internal shape (not the read-side listTopics summary, which adds prompt counts).