Header content of API messages
The session parameter is used to identify of currently logged user. Is transmitted in the Cookie header and received in the Set-Cookie header. The session value is not static and may change during the active session. A missing or incorrect session value will result in the request being rejected (response error „401 Unathorized“). This does not apply to requests that do not require authorization (login, discovery).
Possible <error_status> values
"undefined" | parameter not exists |
"bad value" | parameter value is out of range |
"bad type" | wrong type of parameter value |
"access denied" | parameter is not accessible for write |
"no memory" | not enough memory |
"error" | general internal error |
"busy" | device is in busy state (e.g. during the factory init process or upgrade process) |
Overview of HTTP API Functions
/api/discovery – Get device type
/api/get – Reading of parameter value
/api/set – Writing of parameter value
/api/prop – Reading of parameter property
/api/login – Login user
/api/logout Logout user
Change password
Downloading file
Uploading file