I try to add metadata to a pinned file in ipfs-cluster via the HTTP API but could not succeed so far. Via the client it seems to work as described in the test. Does anyone have an idea?
I got the idea, because in the api.go, there’s a definition of Metadata: make(map[string]string),, but in the documentation that you linked and other documentation, I can’t find the handler for the metadata. Therefore my confusion, sorry I am still a bit new to ipfs cluster.
If you do what the documentation says (using ipfs-cluster-ctl --debug) you will see that the metadata is set via query-string options on the pin request.
Thank you, this did the trick. I couldn’t find this in the documentation, so I opened a PR on the website to state this flag more prominently. Hope it helps!