組み込み測定は読み取り専用です

Moses Skodaエンジニア読了目安 1分

この問題が発生すると、API は 409 Conflict を返します。その type は https://lingo.dev/docs/api/errors/built-in-measurement-read-only です。すべてのエラーに共通する構造については、エラーとステータスコードをご覧ください。

組み込み測定 <id> の変更や削除、対象となるイベントタイプの選択はできません。組み込み測定はすべての組織で共有され、Lingo.dev が指定するイベントタイプで実行されます。有効・無効の切り替えやロケールの選択は、その測定の設定で行ってください。

フィールド#

レスポンス本文には、標準の type、status、title、detail メンバーに加え、以下のフィールドが含まれます。detail のテキストはこれらのフィールドから生成されるため、クライアント側で独自のテキストを表示することもできます。

フィールド型
idstring

例#

json
{
  "detail": "Cannot change, delete or pick event types for built-in measurement <id>. Built-in measurements are shared by every organization and run on the event types Lingo.dev sets. Turn it on or off and choose its locales through its settings instead.",
  "id": "<id>",
  "type": "https://lingo.dev/docs/api/errors/built-in-measurement-read-only",
  "status": 409,
  "title": "Built-in measurement read-only"
}

このエラーを返すエンドポイント#

  • DELETE /v2/organizations/{orgId}/measurements/{measurementId}
  • DELETE /v2/organizations/{orgId}/measurements/{measurementId}/conditions/{eventType}
  • PATCH /v2/organizations/{orgId}/measurements/{measurementId}
  • PUT /v2/organizations/{orgId}/measurements/{measurementId}/conditions/{eventType}