I have a question regarding the ngsi-ld/v1/entityOperations/upsert?options=replace endpoint.
The NGSI-LD specification (Nov 2021) states under 5.6.8.3: "All the existing Entity content shall be replaced" and under 5.6.8.4: "If there were an existing Entity with the same Entity Id, it shall be completely replaced by the new Entity content provided, if the requested update mode is 'replace'."
We were trying to replace entities using a new type (no attributes given) with the fiware/orion-ld:1.0.0 broker. This does not work ("non-matching entity type"), as the implementation seems targeted at replacing the attributes only.
Does someone have the final words of wisdom on the definition of this endpoint?
Thank you!
According to the Latest 1.8.1 ETSI Specification:
The 1.8.1 specification was only released last week, but it appears that the implied scope of the
replacebatch update mode to modify Entitytypehas been clarified and agrees with your usage. The existing Orion-LD "non-matching entity type" error is probably based on ambiguous wording from a previous specification.Context Broker implementation conformance lags the specifications, so the best thing to do would be to raise an issue on Orion to track when it will conform to that clause.