License API
Change Password
5 min
{ "tab" "examples", "url" "/api/v4/change password", "name" "/api/v4/change password", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "date", "type" "string", "children" \[], "description" "in rfc7231 format (see \\"license api authorization\\"), eg thu, 17 nov 2022 20 51 35 gmt" }, { "kind" "required", "name" "authorization", "type" "string", "children" \[], "description" "see \\"license api authorization\\" article" } ], "bodydataparameters" \[ { "kind" "required", "name" "username", "type" "string", "children" \[], "description" "" }, { "kind" "required", "name" "password", "type" "string", "children" \[], "description" "" }, { "name" "new password", "kind" "required", "type" "string", "description" "", "children" \[] } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "es8g1cukjmbnpiivt9vof", "code" "password changed", "language" "200", "customlabel" "" }, { "id" "7eyilksv2qgjcowesdz 2", "code" "{\n \\"unknown product\\" \\"provided product was not found\\",\n \\"license not found\\" \\"license with the provided license user not found\\",\n \\"license not enabled\\" \\"the license is not enabled\\",\n \\"blacklisted\\" \\"this device is blacklisted\\",\n \\"device not found\\" \\"an active device matching the hardware id not found \\",\n\n \ndodaj jos", "language" "400", "customlabel" "" } ], "selectedlanguageid" "es8g1cukjmbnpiivt9vof" }, "examples" { "languages" \[ { "id" "frh06ud70zwhcxyynoyxs", "language" "curl", "code" "curl location request post '/api/v4/change password' \\\\\n header 'accept application/json' \\\\\n header 'date string' \\\\\n header 'authorization string' \\\\\n data raw '{\\"username\\" \\"string\\",\\"password\\" \\"string\\",\\"new password\\" \\"string\\"}'", "customlabel" "" }, { "id" "hwqf488plepm5y8gb i6l", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' '/api/v4/change password',\n 'headers' {\n 'accept' 'application/json',\n 'date' 'string',\n 'authorization' 'string'\n },\n body '{\\"username\\" \\"string\\",\\"password\\" \\"string\\",\\"new password\\" \\"string\\"}'\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "r2mqswyqxxppzq vdkbkw", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"date\\", \\"string\\");\nmyheaders append(\\"authorization\\", \\"string\\");\n\nvar raw = \\"{\\\\\\"username\\\\\\" \\\\\\"string\\\\\\",\\\\\\"password\\\\\\" \\\\\\"string\\\\\\",\\\\\\"new password\\\\\\" \\\\\\"string\\\\\\"}\\";\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"/api/v4/change password\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "w7aqeaxxclxa 0mgtisiz", "language" "python", "code" "import requests\n\nurl = \\"/api/v4/change password\\"\n\npayload = \\"{\\\\\\"username\\\\\\" \\\\\\"string\\\\\\",\\\\\\"password\\\\\\" \\\\\\"string\\\\\\",\\\\\\"new password\\\\\\" \\\\\\"string\\\\\\"}\\"\nheaders = {\n 'accept' 'application/json',\n 'date' 'string',\n 'authorization' 'string'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "wc4evf4x0tr9e8noxxalk", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"/api/v4/change password\\")\n\nhttp = net http new(url host, url port);\nrequest = net http post new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"date\\"] = \\"string\\"\nrequest\[\\"authorization\\"] = \\"string\\"\nrequest body = \\"{\\\\\\"username\\\\\\" \\\\\\"string\\\\\\",\\\\\\"password\\\\\\" \\\\\\"string\\\\\\",\\\\\\"new password\\\\\\" \\\\\\"string\\\\\\"}\\"\n\nresponse = http request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "frh06ud70zwhcxyynoyxs" }, "description" "changes a license user's password\n", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } schema request body type changepasswordrequestbody = { username string, password string, new password string, } json schema { "$schema" "https //json schema org/draft/2020 12/schema", "type" "object", "properties" { "username" { "type" "string" }, "password" { "type" "string" }, "new password" { "type" "string" } }, "required" \["username", "password", "new password"], "additionalproperties" false } response body type changepasswordresponsebody = 'password changed' json schema { "$schema" "https //json schema org/draft/2020 12/schema", "type" "string", } errors if an error occurs, the response will have an http status code of 400 or higher, and the response body will contain an error description in the following format { status number, code string, message string } json schema { "$schema" "https //json schema org/draft/2020 12/schema", "type" "object", "properties" { "status" { "type" "number" }, "code" { "type" "string" }, "message" { "type" "string" } }, "required" \[ "status", "code", "message" ], "additionalproperties" false } list of exceptions change password not allowed (400) change password not allowed for the company missing headers (400) some headers are missing missing parameters (400) some parameters are missing in the request { params }