---
title: Reset Password with Manual Password
slug: kron-pam-api-collection-3-9-0/reset-password-with-manual-password
docTags: 
createdAt: 2026-10-21T06:10:28.166Z
---

{
  "id": "R7Ys-G2RJ5SkwEncIDcdX",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/resetPasswordWithManualPassword",
    "name": "",
    "description": "<p>Allows authorized users to set a manual password for dynamic accounts, ensuring it meets blacklist and complexity requirements, with automated updates when the password expires.</p>\n<p>Supported strategies include SSH, MS_AD, SQL, FILE, LDAP, SMB, WinRM, and Telnet. The feature can be accessed via the REST API endpoint, with an example payload provided.</p>",
    "contentType": "application/json",
    "request": {
      "headerParameters": [
        {
          "name": "Content-Type",
          "description": "",
          "default": "application/json",
          "value": "application/json",
          "type": "string"
        },
        {
          "name": "Cookie",
          "description": "",
          "default": "{{netrightCookie}} ",
          "value": "{{netrightCookie}} ",
          "type": "string"
        },
        {
          "name": "X-XSRF-TOKEN",
          "description": "",
          "default": "{{csrftoken}}",
          "value": "{{csrftoken}}",
          "type": "string"
        }
      ],
      "queryParameters": [],
      "pathParameters": [
        {
          "name": "url",
          "description": "",
          "default": "url",
          "value": "url",
          "type": "string"
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "description": "",
          "default": "{\n    \"sapmDbId\": 478160,\n    \"sapmConfigId\": 56349,\n    \"password\": \"NEW_MANUAL_PASSWORD\",\n    \"comment\": \"SOME_COMMENT\",\n    \"passwordExpirationInMinute\": \"5m\",    // Optional, default value is 30 minutes\n\n}",
          "value": "{\n    \"sapmDbId\": 478160,\n    \"sapmConfigId\": 56349,\n    \"password\": \"NEW_MANUAL_PASSWORD\",\n    \"comment\": \"SOME_COMMENT\",\n    \"passwordExpirationInMinute\": \"5m\",    // Optional, default value is 30 minutes\n\n}",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "v2hpG5IwCE1EegjWVp3C5",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/resetPasswordWithManualPassword \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --cookie {{netrightCookie}}  \\\n     --header 'x-xsrf-token: {{csrftoken}}' \\\n     --data '\"{\\n    \\\"sapmDbId\\\": 478160,\\n    \\\"sapmConfigId\\\": 56349,\\n    \\\"password\\\": \\\"NEW_MANUAL_PASSWORD\\\",\\n    \\\"comment\\\": \\\"SOME_COMMENT\\\",\\n    \\\"passwordExpirationInMinute\\\": \\\"5m\\\",    // Optional, default value is 30 minutes\\n\\n}\"'"
        },
        {
          "id": "777wf0GOrrFwxVA3EoFXu",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"cookie\", \"{{netrightCookie}} \");\nmyHeaders.append(\"x-xsrf-token\", \"{{csrftoken}}\");\n\nvar raw = JSON.stringify(\"{\\n    \\\"sapmDbId\\\": 478160,\\n    \\\"sapmConfigId\\\": 56349,\\n    \\\"password\\\": \\\"NEW_MANUAL_PASSWORD\\\",\\n    \\\"comment\\\": \\\"SOME_COMMENT\\\",\\n    \\\"passwordExpirationInMinute\\\": \\\"5m\\\",    // Optional, default value is 30 minutes\\n\\n}\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/sc/sapm/resetPasswordWithManualPassword\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "H1hNuNVDz-7t92uteUa7E",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/resetPasswordWithManualPassword\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"cookie\"] = \"{{netrightCookie}} \"\nrequest[\"x-xsrf-token\"] = \"{{csrftoken}}\"\nrequest.body = JSON.dump(\"{\\n    \\\"sapmDbId\\\": 478160,\\n    \\\"sapmConfigId\\\": 56349,\\n    \\\"password\\\": \\\"NEW_MANUAL_PASSWORD\\\",\\n    \\\"comment\\\": \\\"SOME_COMMENT\\\",\\n    \\\"passwordExpirationInMinute\\\": \\\"5m\\\",    // Optional, default value is 30 minutes\\n\\n}\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "aJ6IvpWEwWApinUSWZjkc",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/resetPasswordWithManualPassword\"\n\npayload = json.dumps(\"{\\n    \\\"sapmDbId\\\": 478160,\\n    \\\"sapmConfigId\\\": 56349,\\n    \\\"password\\\": \\\"NEW_MANUAL_PASSWORD\\\",\\n    \\\"comment\\\": \\\"SOME_COMMENT\\\",\\n    \\\"passwordExpirationInMinute\\\": \\\"5m\\\",    // Optional, default value is 30 minutes\\n\\n}\")\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'cookie': '{{netrightCookie}} ',\n   'x-xsrf-token': '{{csrftoken}}'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "v2hpG5IwCE1EegjWVp3C5"
    },
    "results": {
      "languages": [
        {
          "id": "n1MZLLhyios4ftyO_RMs4",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "n1MZLLhyios4ftyO_RMs4"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}