Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-16601

FIWARE.Question.Tech.Is there a way to patch to an entity using wildcards or list of servicepaths.

    Details

      Description

      Created question in FIWARE Q/A platform on 12-03-2020 at 19:03
      Please, ANSWER this question AT https://stackoverflow.com/questions/60660119/is-there-a-way-to-patch-to-an-entity-using-wildcards-or-list-of-servicepaths

      Question:
      Is there a way to patch to an entity using wildcards or list of servicepaths

      Description:
      Im trying to update an entity using the PATCH /v2/entities/id/attrs endpoint. The service of the id is known; however, the servicepath is not.

      My first attempt was to leave the header empty or rather not send it at all. For a GET query, this does the job right, however for a PATCH, this returns me a 200. First question, is this the expected behavior?

      Second try was to use a wildcard. I know that my entity is at SP /automatization/<something>. I tried PATCHing to /automatization/# and got a 204, but the entity did not change.

      My last try was to use a list of known SPs: I know the entity I want is in one of a number of SPs, so a used a comma separated list as the SP header. Same as above: 204 but no change.

      Am I missing something?

      Orion version:

      {
      "orion": {
      "version": "2.3.0-next",
      "uptime": "2 d, 1 h, 50 m, 52 s",
      "git_hash": "c99fef1b5c93bf1673d407968c2c101f01b95980",
      "compile_time": "Tue Mar 10 09:46:52 UTC 2020",
      "compiled_by": "root",
      "compiled_in": "0a42bdf43030",
      "release_date": "Tue Mar 10 09:46:52 UTC 2020",
      "doc": "https://fiware-orion.rtfd.io/"
      }
      }

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2020-03-12 21:06|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2020-03-12 21:06|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2020-03-13 18:06|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2020-03-13 18:06|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2020-03-13 21:06|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2020-03-13 21:06|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

          • Assignee:
            backlogmanager Backlog Manager
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: