As regras predefinidas são mutuamente exclusivas
A API responde com 409 Conflict quando ocorre este problema. O seu type é https://lingo.dev/docs/api/errors/predefined-rule-exclusive. Consulte Erros e códigos de estado para conhecer a estrutura comum a todos os erros.
Não é possível associar a regra predefinida <id> a este motor. É mutuamente exclusiva com <heldId>, que o motor já aplica. Desassocie primeiro <heldId> e, em seguida, associe <id>.
Campos#
Além dos membros habituais type, status, title e detail, o corpo contém os seguintes campos. O texto de detail é gerado a partir destes campos, pelo que um cliente pode apresentar o seu próprio texto em alternativa.
| Campo | Tipo |
|---|---|
id | string |
heldId | string |
Exemplo#
json
{
"detail": "Cannot attach predefined rule <id> to this engine. It is mutually exclusive with <heldId>, which the engine already applies. Detach <heldId> first, then attach <id>.",
"id": "<id>",
"heldId": "<heldId>",
"type": "https://lingo.dev/docs/api/errors/predefined-rule-exclusive",
"status": 409,
"title": "Predefined rules mutually exclusive"
}Devolvido por#
PUT /v2/engines/{engineId}/predefined-rules/{id}