SettingsApi
All URIs are relative to http://localhost
Method | Description |
---|---|
get_settings | Get setting values |
update_settings | Update one or multiple setting values |
get_settings
Dict[str, object] get_settings(project_id, search=search)
Get setting values
Parameters
Name | Type | Description | Notes |
---|---|---|---|
project_id | str | Project Id | |
search | str | Optional parameter to search keywords in settings | [optional] |
Return type
Dict[str, object]
Example
Required Imports
import ideastatica_connection_api
from ideastatica_connection_api.rest import ApiException
from pprint import pprint
For client instantiation instructions, refer to the [README] documentation.
def get_settingsExampleFunc(api_client):
project_id = 'project_id_example' # str | Project Id
search = 'search_example' # str | Optional parameter to search keywords in settings (optional)
try:
# Get setting values
api_response = api_client.settings.get_settings(project_id, search=search)
print("The response of SettingsApi->get_settings:\n")
pprint(api_response)
return api_response
except Exception as e:
print("Exception when calling SettingsApi->get_settings: %s\n" % e)
Code Samples
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/2/projects/{projectId}/settings
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update_settings
Dict[str, object] update_settings(project_id, request_body=request_body)
Update one or multiple setting values
Parameters
Name | Type | Description | Notes |
---|---|---|---|
project_id | str | Project Id | |
request_body | Dict[str, object] | Dictionary of key-value settings | [optional] |
Return type
Dict[str, object]
Example
Required Imports
import ideastatica_connection_api
from ideastatica_connection_api.rest import ApiException
from pprint import pprint
For client instantiation instructions, refer to the [README] documentation.
def update_settingsExampleFunc(api_client):
project_id = 'project_id_example' # str | Project Id
request_body = None # Dict[str, object] | Dictionary of key-value settings (optional)
try:
# Update one or multiple setting values
api_response = api_client.settings.update_settings(project_id, request_body=request_body)
print("The response of SettingsApi->update_settings:\n")
pprint(api_response)
return api_response
except Exception as e:
print("Exception when calling SettingsApi->update_settings: %s\n" % e)
Code Samples
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
PUT /api/2/projects/{projectId}/settings
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]