Skip to main content
POST
Attach Topics to Prompt

Authorizations

X-API-Key
string
header
required

API key for authentication. Get yours from the Promptwatch dashboard under Settings > API Keys.

Path Parameters

id
string<uuid>
required

Prompt ID

Body

application/json
topics
string[]
required

Array of topic names to attach

Minimum array length: 1

Response

Default Response

attached
number
required

Number of topic-prompt relationships created