Figured it out looking from: forum post 1 and forum post 2
Basically need to first create an admin key with something like:
curl -X POST
-H ‘Accept: application/json’
-H ‘Content-Type: application/json’
-d ‘{“accountId”:“1a1”, “description”:“Scripting administration account”, “name”:“admin”, “publicValue”:“script”}’
‘http://192.168.101.128:8080/v1/apikeys’
Wait till it becomes active and then add the catalog with something like:
curl -u “admin:script”
-X PUT
-H ‘Accept: application/json’
-H ‘Content-Type: application/json’
-d ‘{“activeValue”:“library=GitHub - rancher/rancher-catalog, community=GitHub - rancher/community-catalog: Catalog entries contributed by the community”, “id”:“1as!catalog.url”, “name”:“catalog.url”, “source”:“Default Environment Variables”, “value”:“library=GitHub - rancher/rancher-catalog, community=GitHub - rancher/community-catalog: Catalog entries contributed by the community”, newXXX=https://XXXXX/XXXXX.git}’
‘http://192.168.101.128:8080/v1/activesettings/1as!catalog.url’