POST /system/web-server
This resource is used to edit the hostname of the device.
The hostname is used to access the device with another value than the IP address.
If this parameter is not in the request, the Application/Json will be chosen by default.
There are multiple possible values (according the resource):
The first two are the most often used.
There are multiple possible values according the resource:
If this parameter is not present during the request, and error 415 Unsupported Media Type will be thrown.
The Content-Length entity-header field indicates the size of the entity-body.
Object Name: WebServer
Property Name | Type | Description | Method |
---|---|---|---|
Protocols | Array<StProtocolring> | This object is an array of Protocol objects. It lists the protocols supported by the device. | GET |
Hostname | String | This is the controller's label or nickname that is used to identify the controller on the network. The hostname can be used in place of an IP address to identify this controller on the network. | GET POST |
URL Example: https://0.0.0.0/api/rest/v1/system/web-server
{
"hostname": "room2-floor4"
}
URL Example: https://0.0.0.0/api/rest/v1/system/web-server
<?xml version="1.0" encoding="utf-8"?>
<WebServer>
<Hostname>room2-floor4</Hostname>
</WebServer>