8.2. Creating Settings

POST /settings

Creates a setting, e.g., to toggle user action availability. Only the reinstall action is currently supported.

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>:6556/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
}