組み込み測定は読み取り専用です
APIは、このエラーを409 Conflictで返します。typeはhttps://lingo.dev/docs/api/errors/built-in-measurement-read-onlyです。すべてのエラーに共通する構造については、エラーとステータスコードをご覧ください。
組み込み測定<id>の変更や削除、イベントタイプの選択はできません。組み込み測定はすべての組織で共有され、Lingo.devが設定したイベントタイプに対して実行されます。有効・無効の切り替えやロケールの選択は、その測定の設定で行ってください。
フィールド#
レスポンス本文には、標準のtype、status、title、detailの各メンバーに加え、以下のフィールドが含まれます。detailのテキストはこれらのフィールドから生成されるため、クライアント側で独自のテキストに置き換えて表示できます。
| フィールド | 型 |
|---|---|
id | string |
例#
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}