/v1/tags/{tag_id}Update a custom tag
Change the description, question or definition of a tag your organization created. Send only the fields to change. Guardrails and routing rules that use the tag pick up the change within a minute. A platform tag answers 403 tag_read_only.
Authentication: Bearer API key in the Authorization header
Path parameters
tag_idstringrequiredThe tag id.
Request body
descriptionstringA short label for people.
questionstringA yes or no question about the request. Yes means the request matches.
definitionstringWhat counts as yes and what does not. Examples of both make the answer sharper.
Responses
200The updated tag.
Response
idstringrequiredThe id you use in rules. camelCase, at most 64 characters.
sourceenumrequiredplatformfor a built-in tag,organizationfor one you created.descriptionstringrequiredA short label for people.
questionstringThe yes or no question asked about the request. Shown on your own tags only.
definitionstringWhat counts as yes and what does not. Shown on your own tags only.
created_atstringupdated_atstring
401Missing, unknown or revoked API key.
403The key is not a provisioning key, or the resource is read-only (
tag_read_only,guardrail_read_only).Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one.
404The resource does not exist or belongs to another organization. An organization without access gets this answer on every route.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one.
422The body failed validation, or it names something that does not exist or cannot be used (
unknown_tag,unknown_model,unknown_identity,model_not_allowed).Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one.
Request
curl -X PATCH 'https://api.experientiallabs.ai/v1/tags/internalConfidential' \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"definition": "Confidential: unreleased product plans, customer records, contract terms, internal financial figures, network or security designs, anything about Project Atlas. Not confidential: published press releases, public pricing, general industry knowledge."
}'Response
{
"id": "internalConfidential",
"source": "organization",
"description": "Confidential company information",
"question": "Does the message contain confidential company information?",
"definition": "Confidential: unreleased product plans, customer records, contract terms, internal financial figures, network or security designs, anything about Project Atlas. Not confidential: published press releases, public pricing, general industry knowledge.",
"created_at": "2026-11-20T00:00:00Z",
"updated_at": "2026-11-21T00:00:00Z"
}https://api.experientiallabs.ai/v1/tags/internalConfidential