Modify settings of a Onezone GUI message.
Enables, disables or modifies a message displayed in Onezone GUI.
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Possible values are:
|
Request body
| Property | Type & Description |
|---|---|
enabled boolean True if the message should be displayed. | |
body string HTML content of the message to display. | |
Request Examples
onepanel-rest-cli -u onepanel:$PASSPHRASE modifyGuiMessage id=signin_notification enabled==true --host https://$HOST:9443Responses
Changes successfully saved.
Invalid request.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Unauthorized request.
Forbidden request.
Internal server error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}