Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuration to be saved via API on Scoold Cloud #445

Open
cimenta opened this issue Mar 17, 2024 · 3 comments
Open

Allow configuration to be saved via API on Scoold Cloud #445

cimenta opened this issue Mar 17, 2024 · 3 comments

Comments

@cimenta
Copy link

cimenta commented Mar 17, 2024

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

@albogdano
Copy link
Member

albogdano commented Mar 17, 2024

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" }

@cimenta
Copy link
Author

cimenta commented Mar 19, 2024

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

@albogdano albogdano changed the title add new aproved domain via API Allow configuration to be saved via API on Scoold Cloud Mar 19, 2024
@albogdano
Copy link
Member

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 albogdano reopened this Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants