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

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

Tag ID

Body

application/json
name
string
required

New name for the tag

Minimum string length: 1

Response

Default Response

id
string<uuid>
required

Tag unique identifier

name
string
required

Tag name

promptCount
number
required

Number of prompts using this tag