scoold icon indicating copy to clipboard operation
scoold copied to clipboard

Allow configuration to be saved via API on Scoold Cloud

Open cimenta opened this issue 1 year ago • 3 comments

hi Alex

could you please confirm my understanding on how to add new domain to approved domain list?

  1. I read the whole list of approved domains as one config option via https://live.scoold.com/apidocs#/config/get_api_config_get__key_
  2. I modify the list
  3. save via https://live.scoold.com/apidocs#/config/put_api_config_set__key_

thank you Radek

cimenta avatar Mar 17 '24 16:03 cimenta

Yes, you can modify the configuration properties from the API but changes won't be saved permanently on Scoold Cloud. If you run Scoold locally and load the configuration from file application.conf then changes will be saved there in that file.

The body of the PUT /api/config/set/{key} API request must be :

{ "value": "domain.com" }

albogdano avatar Mar 17 '24 21:03 albogdano

hi Alex

Q1: could you make is so we can modify cloud configuration via API?

Q2: can we read cloud config via API?

thank you Radek

cimenta avatar Mar 19 '24 12:03 cimenta

Yes, I will work on this so that saving the configuration on Scoold Cloud servers via API works as expected. You can read the current configuration of every Scoold server with a GET request to /api/config

albogdano avatar Mar 19 '24 15:03 albogdano

This is now fixed.

albogdano avatar May 30 '24 08:05 albogdano