---
title: Set Notification Groups of Vault Account for Rest
slug: kron-pam-api-collection-381-patch3/set-notification-groups-of-vault-account-for-rest
docTags: 
createdAt: 2026-10-21T06:07:16.182Z
---

{
  "id": "ZnfrwWpbAZ0ZhZMfz_1uN",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/setNotificationGroupsOfSapmAccountForRest",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<p>This API sets the notification groups for a specified Vault account.</p>\n<ul>\n<li>\n<p><strong>sapmdbId</strong>: Identifier of the Vault account for which the notification groups will be set.</p>\n</li>\n<li>\n<p><strong>notifications</strong>: List of notification group IDs to be associated with the Vault account.</p>\n</li>\n</ul>",
    "contentType": "application/json",
    "request": {
      "headerParameters": [],
      "queryParameters": [],
      "pathParameters": [
        {
          "name": "url",
          "description": "",
          "default": "url",
          "value": "url",
          "type": "string"
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "description": "",
          "default": "{\r\n    \"sapmDbId\": 2994586,\r\n    \"notifications\":[\"DEFAULT_GROUP_SYSYEM_ADMINS\", \"DEFAULT_GROUP_SYSYEM_USERS\"]\r\n}",
          "value": "{\r\n    \"sapmDbId\": 2994586,\r\n    \"notifications\":[\"DEFAULT_GROUP_SYSYEM_ADMINS\", \"DEFAULT_GROUP_SYSYEM_USERS\"]\r\n}",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "iNggSoO6Ld3edzjAlfRLS",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/setNotificationGroupsOfSapmAccountForRest \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '\"{\\r\\n    \\\"sapmDbId\\\": 2994586,\\r\\n    \\\"notifications\\\":[\\\"DEFAULT_GROUP_SYSYEM_ADMINS\\\", \\\"DEFAULT_GROUP_SYSYEM_USERS\\\"]\\r\\n}\"'"
        },
        {
          "id": "0y-GkMpgDdxVxb1hYKL1h",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify(\"{\\r\\n    \\\"sapmDbId\\\": 2994586,\\r\\n    \\\"notifications\\\":[\\\"DEFAULT_GROUP_SYSYEM_ADMINS\\\", \\\"DEFAULT_GROUP_SYSYEM_USERS\\\"]\\r\\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/setNotificationGroupsOfSapmAccountForRest\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "j7dbNIA3qgyu_Ma-Xs5Ea",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/setNotificationGroupsOfSapmAccountForRest\")\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.body = JSON.dump(\"{\\r\\n    \\\"sapmDbId\\\": 2994586,\\r\\n    \\\"notifications\\\":[\\\"DEFAULT_GROUP_SYSYEM_ADMINS\\\", \\\"DEFAULT_GROUP_SYSYEM_USERS\\\"]\\r\\n}\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "LiqSGM0IFXBvOZqMrOtnZ",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/setNotificationGroupsOfSapmAccountForRest\"\n\npayload = json.dumps(\"{\\r\\n    \\\"sapmDbId\\\": 2994586,\\r\\n    \\\"notifications\\\":[\\\"DEFAULT_GROUP_SYSYEM_ADMINS\\\", \\\"DEFAULT_GROUP_SYSYEM_USERS\\\"]\\r\\n}\")\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "iNggSoO6Ld3edzjAlfRLS"
    },
    "results": {
      "languages": [
        {
          "id": "EY5E-L4k-gCJLufftJLqw",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "EY5E-L4k-gCJLufftJLqw"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}