組み込みの測定ではありません
APIは、この問題に対して409 Conflictを返します。typeはhttps://lingo.dev/docs/api/errors/measurement-not-built-inです。すべてのエラーに共通する構造については、エラーとステータスコードを参照してください。
測定<id>には設定を適用できません。設定があるのは組み込みの測定のみです。独自の測定では、代わりにイベント条件を一つずつ設定してください。
フィールド#
レスポンス本文には、標準のtype、status、title、detailの各メンバーに加え、以下のフィールドが含まれます。detailのテキストはこれらのフィールドから生成されるため、クライアント側で独自のテキストを表示することもできます。
| フィールド | 型 |
|---|---|
id | string |
例#
json
{
"detail": "Cannot set settings for measurement <id>: only built-in measurements have them. Set your own measurement's event conditions one by one instead.",
"id": "<id>",
"type": "https://lingo.dev/docs/api/errors/measurement-not-built-in",
"status": 409,
"title": "Measurement not built-in"
}このエラーを返すエンドポイント#
PUT /v2/organizations/{orgId}/measurements/{measurementId}/settings