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"]
}'
const response = await fetch('https://api.helicone.ai/v1/prompt-2025/id/prompt_123/tags', {
method: 'PATCH',
headers: {
'Authorization': `Bearer ${HELICONE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
tags: ["customer-support", "v2", "production"]
}),
});
const result = await response.json();
[
"customer-support",
"v2",
"production"
]
Prompts
Update Prompt Tags
Update the tags for a prompt
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"]
}'
const response = await fetch('https://api.helicone.ai/v1/prompt-2025/id/prompt_123/tags', {
method: 'PATCH',
headers: {
'Authorization': `Bearer ${HELICONE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
tags: ["customer-support", "v2", "production"]
}),
});
const result = await response.json();
[
"customer-support",
"v2",
"production"
]
Updates the tags associated with a prompt. This replaces all existing tags with the new set provided.
Path Parameters
string
required
The unique identifier of the prompt
Request Body
string[]
required
Array of tag strings to set for the prompt
Response
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"]
}'
const response = await fetch('https://api.helicone.ai/v1/prompt-2025/id/prompt_123/tags', {
method: 'PATCH',
headers: {
'Authorization': `Bearer ${HELICONE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
tags: ["customer-support", "v2", "production"]
}),
});
const result = await response.json();
[
"customer-support",
"v2",
"production"
]
Was this page helpful?