Prompts

Edit a prompt topic as the in-app Topics tab does: rename it, change its seed keyword, archive it, or restore an archived one. Archiving takes the topic off every prompt it was on, and restoring it later does not put it back on them. A name another live topic in the project uses (ignoring case and surrounding spaces) is refused with 409 conflict, carrying that topic's id as existingTopicId. Requires the prompt:draft capability. A pitch project that is not currently active refuses with 409 INACTIVE_PITCH_PROMPT_MUTATION.

patch/api/mcp/projects/{projectId}/topics/{topicId}

Request

  • Base URL
    https://app.searchable.com
  • Auth
    HTTP bearer

Path parameters

projectIdstring uuid required

The project id.

topicIdstring uuid required

The topic's id.

Request body

namestring

The topic's new name.

seedKeywordstring

The keyword the topic is built around.

status'active' | 'archived'

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.

Response

Topic updated.

successboolean required

Changes