---
title: Make Reservation For Vault Account
slug: kron-pam-api-collection-3-9-0/make-reservation-for-vault-account
docTags: 
createdAt: 2026-10-21T06:10:28.166Z
---

{
  "id": "VLm14AUbDrpPewFW3IWxz",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/makeReservation",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<p>The <strong>Make Reservation For Vault Account</strong> API allows you to create a password reservation for a specific Vault account within the system.</p>\n<p>By providing necessary details such as <code>sapmdbId</code>, <code>comment</code>, <code>startDate</code>, and <code>endDate</code>, you can specify the time frame for which the password reservation is valid. The reservation will be associated with the Vault account identified by the <code>sapmdbId</code>.</p>",
    "contentType": "application/json",
    "request": {
      "headerParameters": [
        {
          "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\": 464216,\n    \"comment\": \"asdf11g\",\n    \"startDate\": \"2026-10-02T19:45:00\",\n    \"endDate\": \"2026-10-28T21:45:00\",\n    \"firstPartUser\": {\n        \"eid\": \"test_user2\",\n        \"id\": \"e039e179-ba80-4932-b07d-f33db7e38d3a\"\n    },\n        \"secondPartUser\": {\n        \"eid\": \"test_user3\",\n        \"id\": \"f4118975-355b-40f7-a5d5-ed0fdc81a5c2\"\n    },\n    \"remindBeforeInMins\": 15\n}\n",
          "value": "{\n    \"sapmDbId\": 464216,\n    \"comment\": \"asdf11g\",\n    \"startDate\": \"2026-10-02T19:45:00\",\n    \"endDate\": \"2026-10-28T21:45:00\",\n    \"firstPartUser\": {\n        \"eid\": \"test_user2\",\n        \"id\": \"e039e179-ba80-4932-b07d-f33db7e38d3a\"\n    },\n        \"secondPartUser\": {\n        \"eid\": \"test_user3\",\n        \"id\": \"f4118975-355b-40f7-a5d5-ed0fdc81a5c2\"\n    },\n    \"remindBeforeInMins\": 15\n}\n",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Make Reservation For Vault Account",
        "jsonExample": "SUCCESS"
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "sK9tHl01KOUEOszPepkZ7",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/makeReservation \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}' \\\n     --data '\"{\\n    \\\"sapmDbId\\\": 464216,\\n    \\\"comment\\\": \\\"asdf11g\\\",\\n    \\\"startDate\\\": \\\"2026-10-02T19:45:00\\\",\\n    \\\"endDate\\\": \\\"2026-10-28T21:45:00\\\",\\n    \\\"firstPartUser\\\": {\\n        \\\"eid\\\": \\\"test_user2\\\",\\n        \\\"id\\\": \\\"e039e179-ba80-4932-b07d-f33db7e38d3a\\\"\\n    },\\n        \\\"secondPartUser\\\": {\\n        \\\"eid\\\": \\\"test_user3\\\",\\n        \\\"id\\\": \\\"f4118975-355b-40f7-a5d5-ed0fdc81a5c2\\\"\\n    },\\n    \\\"remindBeforeInMins\\\": 15\\n}\\n\"'"
        },
        {
          "id": "GSmR-_V4IuDC0ka5bs9io",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"x-xsrf-token\", \"{{csrftoken}}\");\n\nvar raw = JSON.stringify(\"{\\n    \\\"sapmDbId\\\": 464216,\\n    \\\"comment\\\": \\\"asdf11g\\\",\\n    \\\"startDate\\\": \\\"2026-10-02T19:45:00\\\",\\n    \\\"endDate\\\": \\\"2026-10-28T21:45:00\\\",\\n    \\\"firstPartUser\\\": {\\n        \\\"eid\\\": \\\"test_user2\\\",\\n        \\\"id\\\": \\\"e039e179-ba80-4932-b07d-f33db7e38d3a\\\"\\n    },\\n        \\\"secondPartUser\\\": {\\n        \\\"eid\\\": \\\"test_user3\\\",\\n        \\\"id\\\": \\\"f4118975-355b-40f7-a5d5-ed0fdc81a5c2\\\"\\n    },\\n    \\\"remindBeforeInMins\\\": 15\\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/makeReservation\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "GFQmg8kmioiIOAITN_KLG",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/makeReservation\")\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[\"x-xsrf-token\"] = \"{{csrftoken}}\"\nrequest.body = JSON.dump(\"{\\n    \\\"sapmDbId\\\": 464216,\\n    \\\"comment\\\": \\\"asdf11g\\\",\\n    \\\"startDate\\\": \\\"2026-10-02T19:45:00\\\",\\n    \\\"endDate\\\": \\\"2026-10-28T21:45:00\\\",\\n    \\\"firstPartUser\\\": {\\n        \\\"eid\\\": \\\"test_user2\\\",\\n        \\\"id\\\": \\\"e039e179-ba80-4932-b07d-f33db7e38d3a\\\"\\n    },\\n        \\\"secondPartUser\\\": {\\n        \\\"eid\\\": \\\"test_user3\\\",\\n        \\\"id\\\": \\\"f4118975-355b-40f7-a5d5-ed0fdc81a5c2\\\"\\n    },\\n    \\\"remindBeforeInMins\\\": 15\\n}\\n\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "fYiHxOi3nQLbbi89GypZw",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/makeReservation\"\n\npayload = json.dumps(\"{\\n    \\\"sapmDbId\\\": 464216,\\n    \\\"comment\\\": \\\"asdf11g\\\",\\n    \\\"startDate\\\": \\\"2026-10-02T19:45:00\\\",\\n    \\\"endDate\\\": \\\"2026-10-28T21:45:00\\\",\\n    \\\"firstPartUser\\\": {\\n        \\\"eid\\\": \\\"test_user2\\\",\\n        \\\"id\\\": \\\"e039e179-ba80-4932-b07d-f33db7e38d3a\\\"\\n    },\\n        \\\"secondPartUser\\\": {\\n        \\\"eid\\\": \\\"test_user3\\\",\\n        \\\"id\\\": \\\"f4118975-355b-40f7-a5d5-ed0fdc81a5c2\\\"\\n    },\\n    \\\"remindBeforeInMins\\\": 15\\n}\\n\")\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-xsrf-token': '{{csrftoken}}'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "sK9tHl01KOUEOszPepkZ7"
    },
    "results": {
      "languages": [
        {
          "id": "V5rS6HSP449-bEzIrgJHp",
          "language": "200",
          "code": "SUCCESS"
        }
      ],
      "selectedLanguageId": "V5rS6HSP449-bEzIrgJHp"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}