API to update (patch) gateway meta data

Hello!

I’m writing an integration program that will read and write to gateway objects. I would want to have an API or a solution to add or update new meta data to my object based on the key.

What I’ve found in documentation is that I can only write new meta data through Edit ( /api/v1/gateways/{uid}), but that will send a PUT request and update the entire object. This means that I always have to specify the previous meta data properties in the request body in order to keep them.

Do you have any suggestions?

Hi Daniel,

here my suggestion: first GET the details of the gateway with GET /api/v1/gateway/{uid}, which returns the metadata already set and add the new metada in the json object and reuse this json object when saving with the PUT/api/v1/gateways/{uid}.

Regards.