Skip to main content
Skip table of contents

Sub-user password change

POST/api/v1/users/subusers/{subuser}/change-password

Headers

Authorization

Bearer token

Accept

application/json

X-Client

ios-cctv|android-cctv|thick-legal|web

X-UUID

unique device id

Body

json

JSON
{
    "password": "password",
    "password_confirmation": "password"
}

subuseroptional

int

Sub-user's identifier for whom the password needs to be updated

passwordrequired

string

Password for the sub-user

password_confirmationrequired

string

Confirm the password to ensure it is entered correctly

Response

200

Successful response

JSON
{"status": "ok"}
404

If the sub-user does not belong to the user or does not exist

401

Authorization token not provided or invalid, see Obtaining a token

Example

JSON
curl -k --location --request POST 'https://vms.local/api/v1/users/subusers/{subuser}/change-password' \
--header 'Authorization:Bearer token' \
--header 'Accept:application/json' \
--header 'X-Client:ios-cctv|android-cctv|thick-legal|web' \
--header 'X-UUID:unique device id' \
--header 'Content-Type: application/json \
--data-raw '{
    "password": "password",
    "password_confirmation": "password"
}'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.