Skip to main content
PATCH
/
v1
/
prompt-2025
/
id
/
{promptId}
/
tags
curl -X PATCH "https://api.helicone.ai/v1/prompt-2025/id/prompt_123/tags" \
  -H "Authorization: Bearer $HELICONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "tags": ["customer-support", "v2", "production"]
  }'
[
  "customer-support",
  "v2",
  "production"
]
Updates the tags associated with a prompt. This replaces all existing tags with the new set provided.

Path Parameters

promptId
string
required
The unique identifier of the prompt

Request Body

tags
string[]
required
Array of tag strings to set for the prompt

Response

tags
string[]
The updated array of tags
curl -X PATCH "https://api.helicone.ai/v1/prompt-2025/id/prompt_123/tags" \
  -H "Authorization: Bearer $HELICONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "tags": ["customer-support", "v2", "production"]
  }'
[
  "customer-support",
  "v2",
  "production"
]