Details
-
Type: Monitor
-
Status: In Progress
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Chapter:Unknown
-
HD-Enabler:Unknown
-
HD-Node:Unknown
Description
Created question in FIWARE Q/A platform on 26-03-2024 at 17:03
Please, ANSWER this question AT https://stackoverflow.com/questions/78226841/fiware-orion-ld-upsert-replace-endpoint-only-attributes-or-completely-includin
Question:
FIWARE Orion-LD upsert replace endpoint: only attributes or completely (including type)?
Description:
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!
2025-02-04 17:53|CREATED monitor | # answers= 1, accepted answer= True