Skip to main content

Camera Change Password command in Rest v3 6.0+ ?

Completed

Comments

5 comments

  • Norman
    • Network Optix team

    Hi Jason,

    I do not recall a command like /api/changeCameraPassword. We had one in the past (ec2/camerasEx) which was deprecated from v5.0+, and which was more or less similar in use.

    First send a GET request to /rest/v3/devices/{deviceId} to get the correct body parameters. Change the desired body parameters with the PATCH /rest/v3/devices/{deviceId} request.

    For example in my situation, the body (1) looked like: 

    Once Send, you should get a HTTP 200 OK (2) response and the new body content (3) and this updates the  credentials used by the VMS to authenticate the devices. 

    0
  • Jason Clement

    Yes I have that working but how to push the credential change on the camera?  We had an old power shell script for the old API that worked which is below.

    $hash = @{
     "cameraId"= "20ddfd90-c8f7-6fa7-1c4a-dba2f6389293";
     "user"= "admin";
     "password"= "Samsung01!"
    }

    $JSON = $hash | convertto-json

    $username = "admin"
    $password = ConvertTo-SecureString "password" -AsPlainText -Force
    $cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $username, $password


    Invoke-WebRequest -Credential $cred -Uri "http://192.168.0.250:7001/api/changeCameraPassword" -Method POST -Body $JSON

    0
  • Norman
    • Network Optix team

    Hi Jason Clement.

    I did some digging and managed to find something relevant for version 4.0, but it relies on deprecated API requests and only applies to a single vendor.

    Please allow me a bit more time to check on the current status of this API request. I’ll follow up as soon as I have more information.

    0
  • Norman
    • Network Optix team

    Hi Jason Clement,

    I checked the history of this request. This API call was originally available in version 4.0, but it relied on other API requests that were deprecated in version 5.0. Additionally, the changeCameraPassword request was only supported by a selection of Hanwha devices, and since it was brand specific, if also was never documented in the generic API documentation. 

    As a result, this API is no longer usable, as it was officially deprecated in version 5.0.

    0
  • Jason Clement

    Thank you Norman, I'll bring it up to our Product Manager.

    0

Please sign in to leave a comment.