PATCH/v1/tags/{tag_id}

カスタムタグを更新

組織が作成したタグのdescription、question、definitionを変更します。変更するフィールドだけを送信します。このタグを使用するガードレールとルーティングルールには、1分以内に変更が反映されます。プラットフォームのタグの場合は403 tag_read_onlyを返します。

認証: AuthorizationヘッダーにBearer形式のAPIキー

パスパラメーター

  • tag_idstring必須

    タグID。

リクエストボディ

  • descriptionstring

    人が読むための短いラベル。

  • questionstring

    リクエストについて「はい」か「いいえ」で答える質問。「はい」はリクエストが一致することを表します。

  • definitionstring

    「はい」に該当するものと該当しないもの。両方の例を挙げると判定が明確になります。

レスポンス

  • 200

    更新されたタグ。

    レスポンス
    • idstring必須

      ルールで使用するID。camelCaseで、最大64文字です。

    • sourceenum必須

      組み込みのタグはplatform、組織が作成したタグはorganizationです。

      "platform""organization"
    • descriptionstring必須

      人が読むための短いラベル。

    • questionstring

      リクエストについて「はい」か「いいえ」で答える質問。組織が作成したタグにのみ表示されます。

    • definitionstring

      「はい」に該当するものと該当しないもの。組織が作成したタグにのみ表示されます。

    • created_atstring
    • updated_atstring
  • 401

    APIキーがない、不明、または失効しています。

  • 403

    キーがプロビジョニングキーではないか、リソースが読み取り専用です(tag_read_only、guardrail_read_only)。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由。

  • 404

    リソースが存在しないか、他の組織に属しています。アクセス権のない組織には、すべてのエンドポイントがこのレスポンスを返します。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由。

  • 422

    ボディの検証に失敗したか、存在しない対象または使用できない対象を指定しています(unknown_tag、unknown_model、unknown_identity、model_not_allowed)。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由。

リクエスト

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."
}'

レスポンス

{
  "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