[Fiware-tech-help] [frontierCities2]

Ailema Vázquez García avazquez at bettergy.es
Mon Jul 16 11:57:02 CEST 2018


Hello again,

To update entities owned by a context provider in Orion, they must be
registered by type and id.

If we register the context provider specifying only the entity type, then
when we try to update passing an id in addition to the type.
POST http://192.168.1.141:1026/v2/registrations/

{
    "dataProvided": {
     "entities": [{
      "type": "Building",
      "idPattern" : ".*"
     }]
 },
 "provider": {
  "http": {
   "url": "https://app.energysequence.com/v2"
  },
  "legacyForwarding": true
 }
}
Response

201 Created


But we can not update an entity of this type. when used the following
query...

PATCH
http://192.168.1.141:1026/v2/entities/5b4bd791ccfc03708e521285/attrs/?type=Building

the answer 404 is not found.
Is there any way to update entities without the need to register their
identifier for each one?
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20180716/6985e69b/attachment-0001.html>


More information about the Fiware-tech-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy