ブランドボイスのバリエーションでロケールがすでに使用されています
この問題が発生すると、API は 409 Conflict を返します。その type は https://lingo.dev/docs/api/errors/brand-voice-variation-locale-taken です。すべてのエラーに共通する形式については、エラーとステータスコードをご覧ください。
このブランドボイスには、<targetLocale> のバリエーションがすでに存在します。ブランドボイスに設定できるバリエーションは、ターゲットロケールごとに一つだけです。新しく作成するのではなく、既存のバリエーションを更新してください。
フィールド#
レスポンス本文には、標準の type、status、title、detail メンバーに加えて、以下のフィールドが含まれます。detail のテキストはこれらのフィールドをもとに生成されるため、クライアント側で独自のテキストに置き換えて表示できます。
| フィールド | 型 |
|---|---|
targetLocale | string |
例#
json
{
"detail": "This brand voice already has a variation for <targetLocale>. A voice carries one variation per target locale. Update the existing one instead.",
"targetLocale": "<targetLocale>",
"type": "https://lingo.dev/docs/api/errors/brand-voice-variation-locale-taken",
"status": 409,
"title": "Brand voice variation locale taken"
}このエラーを返すエンドポイント#
PATCH /v2/brand-voice-variations/{id}POST /v2/brand-voices/{brandVoiceId}/variations