Hello Sir/Madam, My name is Rafael and I am starting to learn FIWARE for my own projects. I am sending this email because I have a question related to the FIWARE Step-by-Step tutorials and I wonder if you could give me some clarifications, but I am not sure if this is the correct site for asking this kind of questions. If so, my question arises within following tutorials: https://fiware-tutorials.readthedocs.io/en/latest/getting-started/index.html https://fiware-tutorials.readthedocs.io/en/latest/crud-operations/index.html On the first one, an entity of type Store is created with this structure: curl -iX POST \ 'http://localhost:1026/v2/entities' \ -H 'Content-Type: application/json' \ -d ' { "id": "urn:ngsi-ld:Store:001", "type": "Store", "address": { "type": "PostalAddress", "value": { "streetAddress": "Bornholmer Straße 65", "addressRegion": "Berlin", "addressLocality": "Prenzlauer Berg", "postalCode": "10439" }, "metadata": { "verified": { "value": true, "type": "Boolean" } } }, "location": { "type": "geo:json", "value": { "type": "Point", "coordinates": [13.3986, 52.5547] } }, "name": { "type": "Text", "value": "Bösebrücke Einkauf" } }' And, in the second tutorial, an update (overwrite) of a specific attribute value from an entity of type Product is carried out as follow: curl -iX PUT \ --url 'http://localhost:1026/v2/entities/urn:ngsi-ld:Product:001/attrs/price/value?type=Product' \ --header 'Content-Type: text/plain' \ --data 89 or curl -iX PATCH \ --url 'http://localhost:1026/v2/entities/urn:ngsi-ld:Product:001/attrs?type=Product' \ --header 'Content-Type: application/json' \ --data ' { "price":{"type":"Integer", "value": 89} }' My question is how could I update the attribute streetAddress from the entity Store? I tried something like this, but I feel it is not correct. curl -iX POST \ --url 'http://localhost:1026/v2/op/update' \ --header 'Content-Type: application/json' \ --data '{ "actionType":"update", "entities":[ { "id":"urn:ngsi-ld:Store:001", "type":"Store", "address":{"type":"PostalAddress", "value":{"streetAddress":"streetXX"}} } ] }' Thank you very much in advance for your response. Best regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20210625/f5ce02c8/attachment-0001.html>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy