---
title: Add Vault Group - Static PostgreSQL Databases
slug: kron-pam-api-collection-3-9-0/add-vault-group-static-postgresql-databases
docTags: 
createdAt: 2026-10-21T06:10:28.166Z
---

{
  "id": "dZdsJkg2kS-6g-MKtnI2m",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/addSapmGroup",
    "name": "",
    "description": "<p>Static database vault group example. This creates the vault group only; add accounts to this vault group after the group dbId is returned.</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    \"name\": \"Static PostgreSQL Databases\",\n    \"description\": \"Static vault group for PostgreSQL database credentials. Related vault config sapmConfigId=-412267.\"\n}",
          "value": "{\n    \"name\": \"Static PostgreSQL Databases\",\n    \"description\": \"Static vault group for PostgreSQL database credentials. Related vault config sapmConfigId=-412267.\"\n}",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "WlmyKfriUgb--f1BwnBgV",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/addSapmGroup \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --cookie {{netrightCookie}}  \\\n     --header 'x-xsrf-token: {{csrftoken}}' \\\n     --data '\"{\\n    \\\"name\\\": \\\"Static PostgreSQL Databases\\\",\\n    \\\"description\\\": \\\"Static vault group for PostgreSQL database credentials. Related vault config sapmConfigId=-412267.\\\"\\n}\"'"
        },
        {
          "id": "_mDfd2fGnUYcjzJzwFhDT",
          "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    \\\"name\\\": \\\"Static PostgreSQL Databases\\\",\\n    \\\"description\\\": \\\"Static vault group for PostgreSQL database credentials. Related vault config sapmConfigId=-412267.\\\"\\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/addSapmGroup\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "48tMdqIXs_mGr1_XyLSOd",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/addSapmGroup\")\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    \\\"name\\\": \\\"Static PostgreSQL Databases\\\",\\n    \\\"description\\\": \\\"Static vault group for PostgreSQL database credentials. Related vault config sapmConfigId=-412267.\\\"\\n}\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "UqODQHB3OGUr8z3xbljCf",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/addSapmGroup\"\n\npayload = json.dumps(\"{\\n    \\\"name\\\": \\\"Static PostgreSQL Databases\\\",\\n    \\\"description\\\": \\\"Static vault group for PostgreSQL database credentials. Related vault config sapmConfigId=-412267.\\\"\\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": "WlmyKfriUgb--f1BwnBgV"
    },
    "results": {
      "languages": [
        {
          "id": "6hjInaQg2ocgLzC2fbGYY",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "6hjInaQg2ocgLzC2fbGYY"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}