La regla predefinida es mutuamente excluyente
La API devuelve 409 Conflict cuando se produce 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 de todos los errores.
No se puede asociar la regla predefinida <id> a este motor. Es mutuamente excluyente con <heldId>, que el motor ya aplica. Desasocia primero <heldId> y, después, asocia <id>.
Campos#
Además de los miembros estándar type, status, title y detail, el cuerpo incluye estos campos. El texto de detail se genera a partir de ellos, por lo que un cliente puede mostrar un texto propio en su lugar.
| 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}