---
title: Add Approval Manager For Vault Group
slug: kron-pam-api-collection-3-9-0/add-approval-manager-for-vault-group
docTags: 
createdAt: 2026-10-21T06:10:28.166Z
---

{
  "id": "RkdF0ypI2yWcvLtdVNCNp",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/addApprovalManagerForSapmGroup",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<p>The <strong>Add Approval Manager For Vault Group</strong> API enables you to manage the approval managers for a specific Vault group within the system. By providing the <code>dbId</code> of the Vault group, you can:</p>\n<ul>\n<li>\n<p><strong>Set Approval Managers:</strong> Define a list of approval managers for the Vault group.</p>\n</li>\n<li>\n<p><strong>Remove Managers:</strong> Send an empty array in the <code>managers</code> parameter to remove the manager user group from the list.</p>\n</li>\n</ul>\n<p>Additionally, the <code>applyType</code> parameter allows you to specify the scope of the change:</p>\n<ul>\n<li>\n<p><code>THIS_ONLY</code>: Apply changes only to the specified group.</p>\n</li>\n<li>\n<p><code>ONE_LEVEL</code>: Apply changes to the specified group and one level of its sub-groups.</p>\n</li>\n<li>\n<p><code>FULL_TREE</code>: Apply changes to the specified group and all of its sub-groups recursively.</p>\n</li>\n</ul>",
    "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    \"dbId\": 384793,\n    \"newManager\": \"3bb509f0-d68c-4c41-8546-0b341c8936a1\",\n    \"approvalLevel\": 2,\n    \"applyType\": \"THIS_ONLY\"\n}",
          "value": "{\n    \"dbId\": 384793,\n    \"newManager\": \"3bb509f0-d68c-4c41-8546-0b341c8936a1\",\n    \"approvalLevel\": 2,\n    \"applyType\": \"THIS_ONLY\"\n}",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Set Approval Managers For Vault Group",
        "jsonExample": ""
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "uGh9ObE_kKm9fkvshbe0F",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/addApprovalManagerForSapmGroup \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}' \\\n     --data '\"{\\n    \\\"dbId\\\": 384793,\\n    \\\"newManager\\\": \\\"3bb509f0-d68c-4c41-8546-0b341c8936a1\\\",\\n    \\\"approvalLevel\\\": 2,\\n    \\\"applyType\\\": \\\"THIS_ONLY\\\"\\n}\"'"
        },
        {
          "id": "TRhRSmb4iO0Y81bG_K5Na",
          "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    \\\"dbId\\\": 384793,\\n    \\\"newManager\\\": \\\"3bb509f0-d68c-4c41-8546-0b341c8936a1\\\",\\n    \\\"approvalLevel\\\": 2,\\n    \\\"applyType\\\": \\\"THIS_ONLY\\\"\\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/addApprovalManagerForSapmGroup\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "MR_GFJdzsaZTpVW9-7Da2",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/addApprovalManagerForSapmGroup\")\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    \\\"dbId\\\": 384793,\\n    \\\"newManager\\\": \\\"3bb509f0-d68c-4c41-8546-0b341c8936a1\\\",\\n    \\\"approvalLevel\\\": 2,\\n    \\\"applyType\\\": \\\"THIS_ONLY\\\"\\n}\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "iTntnLlPLbZ8QcRuPi1hB",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/addApprovalManagerForSapmGroup\"\n\npayload = json.dumps(\"{\\n    \\\"dbId\\\": 384793,\\n    \\\"newManager\\\": \\\"3bb509f0-d68c-4c41-8546-0b341c8936a1\\\",\\n    \\\"approvalLevel\\\": 2,\\n    \\\"applyType\\\": \\\"THIS_ONLY\\\"\\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": "uGh9ObE_kKm9fkvshbe0F"
    },
    "results": {
      "languages": [
        {
          "id": "7ROc5C1M8aKxzv7peWoOa",
          "language": "200",
          "code": "// Set Approval Managers For Vault Group\n"
        }
      ],
      "selectedLanguageId": "7ROc5C1M8aKxzv7peWoOa"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}