Set

Function

This API is used to set the password for the first login of the device.

Request Message

Parameter Description

Table 1
ParameterRangeTypeDescription
base_enc_passwordobjectEncrypted password object, see base_enc_password information Table for object members.
base_secondary_authenticationobjectAuthentication object, see base_secondary_authentication information Table for object members.
activation_pwdobjectEncrypted password object, used to activate ipc, object members see base_enc_password information Table . (for NVR only)
support_recover_pwdboolWhether to support password recovery settings.

Sample:

POST /API/FirstLogin/Password/Set HTTP/1.1
{
    "version": "1.0",
    "data": {
        "base_enc_password": {
            "seq": 0,
            "peer_key": "0z3+fzVXn/msq6ZagsHDY57sI29XtP3qIL+gVOW4hJH8=",
            "cipher": "075RisUMqoS9110GpXIoJhlJJQORLeWpmU12SZpcSFkDMLfIj"
        },
        "activation_pwd": {
            "seq": 0,
            "peer_key": "09BuUR966wl41vQIcS2WwAQRh3mATOABaq3TYSDfheh4=",
            "cipher": "0Cn8dz0BTQ0uM4BGHVRwuHXzeurPj2BeFKB8kOb2dkVmKr959sw=="
        }
    }
}

Response Message

None.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {}
}

Error Code

See Response Messages Body and Common error_code for more information.