8.2. Creating SettingsΒΆ
POST /settings
Creates a setting, e.g., to toggle user action availability.
Name |
In |
Type |
Description |
---|---|---|---|
|
body |
string |
The action to toggle:
|
|
body |
string |
Limits the setting scope:
|
|
body |
string |
|
|
body |
string |
Enables ( |
Request example:
# curl -s -X POST -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' -d '
{
"param": "instance.action.reinstall",
"instance_type": "all",
"module_type": "all",
"value": "0"
}
' https://<controller_hostname>/api/v1/settings
Response example:
{
"value": "1",
"created_at": "2020-12-18T08:16:37.351282",
"applies_to": {
"instance_type": "all",
"module_type": "all"
},
"param": "instance.action.reinstall",
"updated_at": null
}