測定を利用できません
MeasurementsNotOffered エラー(422 処理できないコンテンツ)の意味と、このエラーに含まれるフィールド、エラーを返すエンドポイントについて説明します。
この問題が発生すると、API は422 Unprocessable Contentを返します。そのtypeはhttps://lingo.dev/docs/api/errors/measurements-not-offeredです。すべてのエラーに共通する構造については、エラーとステータスコードをご覧ください。
このチェックでは <id> を実行できません。指定された測定がこの組織のカスタム測定ではないか、有効な条件のいずれもチェックの対象ロケールに対応していません。対象ロケールで利用可能な測定を選択するか、measurementIds を省略して、利用可能なすべての測定を実行してください。
フィールド #
本文には、標準のtype、status、title、detailの各メンバーに加えて、以下のフィールドが含まれます。detailのテキストはこれらのフィールドをもとに生成されるため、クライアント側で独自のテキストに置き換えて表示できます。
| フィールド | 型 |
|---|---|
ids | string[] |
例 #
JSON
{
"detail": "Cannot run <id> in this check: they are not custom measurements of this organization, or none of their enabled conditions covers a target locale of the check. Choose measurements offered for these locales, or leave measurementIds out to run every offered one.",
"ids": [
"<id>"
],
"type": "https://lingo.dev/docs/api/errors/measurements-not-offered",
"status": 422,
"title": "Measurements not offered"
}