Adding a new catalog without the UI

Hi @vincent

Thank you for your response.
I followed your advise in using the API, and found this discussion, here, on the forum: Use API to add custom catalog

I managed to add new catalogs, via PUT method, with curl, like :

curl -u “admin:script”
-X PUT
-H ‘Accept: application/json’
-H ‘Content-Type: application/json’
-d ‘{“activeValue”:“library=https://git.rancher.io/rancher-catalog.git, community=https://git.rancher.io/community-catalog.git”,“name”:“catalog.url”,“source”:“Default Environment Variables”,“value”:“library=https://git.rancher.io/rancher-catalog.git, community=https://git.rancher.io/community-catalog.git, xx=https://newurl”}’
http://localhost:8080/v1/settings/catalog.url

This seems to be adding the xx catalog correctly. I don’t know, however, what the “id”:“1as!catalog.url” in the discussion mentioned above is. Is this necessary?

Thanks again,