Las reglas predefinidas son mutuamente excluyentes
La API responde con 409 Conflict cuando se presenta este problema. Su type es https://lingo.dev/docs/api/errors/predefined-rule-exclusive. Consulta Errores y códigos de estado para conocer la estructura común a todos los errores.
No se puede vincular la regla predefinida <id> a este motor. Es mutuamente excluyente con <heldId>, que el motor ya aplica. Primero desvincula <heldId> y luego vincula <id>.
Campos#
Además de los miembros estándar type, status, title y detail, el cuerpo contiene estos campos. El texto de detail se genera a partir de ellos, por lo que un cliente puede mostrar su propio texto en lugar del original.
| Campo | Tipo |
|---|---|
id | string |
heldId | string |
Ejemplo#
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"
}Devuelto por#
PUT /v2/engines/{engineId}/predefined-rules/{id}