PATCH/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_idstringrequired

    The tag id.

Request body

  • descriptionstring

    A short label for people.

  • questionstring

    A yes or no question about the request. Yes means the request matches.

  • definitionstring

    What counts as yes and what does not. Examples of both make the answer sharper.

Responses

  • 200

    The updated tag.

    Response
    • idstringrequired

      The id you use in rules. camelCase, at most 64 characters.

    • sourceenumrequired

      platform for a built-in tag, organization for one you created.

      "platform""organization"
    • descriptionstringrequired

      A short label for people.

    • questionstring

      The yes or no question asked about the request. Shown on your own tags only.

    • definitionstring

      What counts as yes and what does not. Shown on your own tags only.

    • created_atstring
    • updated_atstring
  • 401

    Missing, unknown or revoked API key.

  • 403

    The key is not a provisioning key, or the resource is read-only (tag_read_only, guardrail_read_only).

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one.

  • 404

    The resource does not exist or belongs to another organization. An organization without access gets this answer on every route.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one.

  • 422

    The 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
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable 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