Langue déjà utilisée pour une variante de voix de marque
L’API renvoie 409 Conflict avec ce problème. Son type est https://lingo.dev/docs/api/errors/brand-voice-variation-locale-taken. Consultez Erreurs et codes de statut pour connaître la structure commune à toutes les erreurs.
Cette voix de marque dispose déjà d’une variante pour <targetLocale>. Une voix ne peut avoir qu’une seule variante par langue cible. Mettez plutôt à jour la variante existante.
Champs#
En plus des membres standard type, status, title et detail, le corps contient les champs suivants. Le texte de detail est généré à partir de ces champs : un client peut donc afficher son propre texte à la place.
| Champ | Type |
|---|---|
targetLocale | string |
Exemple#
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"
}Renvoyée par#
PATCH /v2/brand-voice-variations/{id}POST /v2/brand-voices/{brandVoiceId}/variations