使用中のブランドボイス

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

この問題が発生すると、API は 409 Conflict を返します。その type は https://lingo.dev/docs/api/errors/brand-voice-in-use です。すべてのエラーに共通する構造については、エラーとステータスコードを参照してください。

ブランドボイス <id> は、2つのエンジンで使用されているため削除できません。まず、これらのエンジンとの関連付けを解除してください。

フィールド#

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

フィールド型
idstring
engineCountinteger | null

例#

json
{
  "detail": "Brand voice <id> cannot be deleted while 2 engines apply it. Detach it from those engines first.",
  "id": "<id>",
  "engineCount": 2,
  "type": "https://lingo.dev/docs/api/errors/brand-voice-in-use",
  "status": 409,
  "title": "Brand voice in use"
}

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

  • DELETE /v2/brand-voices/{id}