setOnvifUser.lua
[INDEX]

ABSTRACT

Set(change) Onvif user informations (include password)

ARGUMENTS

HTTP Arguments submit: GET; POST

Test this API over HTTP - (URL):

Username

User name to set/change

Test value:

Password
STRING

New password to change (If blank or not provided, the password will not be changed)

Test value:

Name
STRING

User's friend name (If blank or not provided, it will not be changed)

Test value:

Role
STRING

User role (If blank or not provided, it will not be changed)

NOTE: the user 'admin' is the built-in one, it's 'Role' can not be changed and always be 'administrator'.

administrator

Administrator

operator

Operator

user

Normal user

Test value:

RETURNS

Return a JSON style result. The JSON format is:

{
/*OBJECT*/

"Result":
NUMBER

200 means OK, other error code meanings are similar to HTTP Response.

"Status":
"STRING"

Status message. Responsing result status of API executive, if there errors, it will describe reasons.

"Data": {
/*OBJECT*/

"Reason":
"STRING"

If the 'Result' is 405, 'Reason' show the reason why add user fail:

invalid

Invalid user name

notexist

The user name is not exist

}
}

NOTES

Security attention:

Call this API require HTTP authorization. The username and password are same as web login.

OTHER NOTES

For API calling test, the default authorization username is 'admin' and password is 'admin' ( 'Authorization' field of HTTP request header is:"Basic YWRtaW46YWRtaW4=" ). You can change it bellow:

Authorization:

KILOVIEW Device HTTP API, v1.0