添付データにアクセスできません

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

この問題が発生すると、APIは422 Unprocessable Contentを返します。そのtypeはhttps://lingo.dev/docs/api/errors/attachments-unreachableです。すべてのエラーに共通する形式については、エラーとステータスコードを参照してください。

次の用語集をこのエンジンに適用できません:<id>。各用語集は、エンジンと同じ組織に属し、閲覧できる状態である必要があります。リクエストから除外するか、アクセス権を申請してください。

フィールド#

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

フィールド型
kind"glossary" | "ruleset" | "brandVoice"
idsstring[]

例#

json
{
  "detail": "Cannot apply these glossaries to this engine: <id>. Each one must belong to the engine's organization and be visible to you. Leave them out of the request, or ask for access.",
  "kind": "glossary",
  "ids": [
    "<id>"
  ],
  "type": "https://lingo.dev/docs/api/errors/attachments-unreachable",
  "status": 422,
  "title": "Attachments out of reach"
}

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

  • PATCH /v2/engines/{id}
  • POST /v2/organizations/{orgId}/engines
  • POST /v2/organizations/{orgId}/provisioning/jobs
  • PUT /v2/engines/{id}/glossaries/{glossaryId}
  • PUT /v2/engines/{id}/rulesets/{rulesetId}