Skip to main content
POST
/
prompts
/
{id}
/
tags
Attach Tags to Prompt
curl --request POST \
  --url https://server.promptwatch.com/api/v2/prompts/{id}/tags \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "tags": [
    "<string>"
  ]
}
'
{
  "attached": 123,
  "tags": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    }
  ]
}

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
tags
string[]
required

Array of tag names to attach

Minimum array length: 1

Response

Default Response

attached
number
required

Number of tags attached to the prompt

tags
object[]
required

Array of all tags now attached to the prompt