Official Plugins (Kuzzle v2.x)
Device Manager v2.x
2

Mappings Conflicts #

A MappingsConflictsError is thrown in case the new model mappings types are conflicting with other models, it can be itself in case of an update or another model when creating a new one.

HTTP status: 409

Additional Properties:

property type description
chunks array of objects List of conflicting models name and type, along an array of conflicts.
A conflict contains the new type and current type as well as its path.

Here is an example of a chunks field:

Copied to clipboard!
[
  {
    "conflicts": [
      {
        "currentType": "integer",
        "newType": "keyword",
        "path": "asset.metadataMappings.weight.type"
      },
      {
        "currentType": "integer",
        "newType": "keyword",
        "path": "asset.metadataMappings.height.type"
      }
    ],
    "modelType": "asset",
    "newModel": "Container",
    "sourceModel": "Container"
  },
  {
    "conflicts": [
      {
        "currentType": "keyword",
        "newType": "integer",
        "path": "asset.metadataMappings.company.type"
      }
    ],
    "modelType": "asset",
    "newModel": "Container",
    "sourceModel": "Plane"
  }
]

Chunks fields:

field type description
conflicts array of objects List of conflicts for the current chunk
modelType string The type of the new and source model
newModel string The conflicting model
sourceModel string The model at source of the conflict

Conflicts fields:

field type description
currentType string Current type in the mappings
newType string New type causing conflicts
path string Path to the conflict source