---
title: Bulk Edit Accounts
slug: kron-pam-api-collection-381-patch3/bulk-edit-accounts
docTags: 
createdAt: 2026-10-21T06:07:16.182Z
---

{
  "id": "n8p4aJtWWucTy5NgE0jBq",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/bulkEditSAPMAccounts",
    "name": "",
    "description": "",
    "contentType": "application/json",
    "request": {
      "headerParameters": [],
      "queryParameters": [],
      "pathParameters": [
        {
          "name": "url",
          "description": "",
          "default": "url",
          "value": "url",
          "type": "string"
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "description": "",
          "default": "  {\r\n    \"owner\": {\r\n      \"id\": \"99bf8751-1d18-4268-91f8-e506c16b18c8\",\r\n      \"eid\": \"enduser\"\r\n    },\r\n    \"description\": \"Description\",\r\n    \"secretNotes\": \"New Secret Note\",\r\n    \"additionalInfo\": \"Info\",\r\n    \"sapmDbId\": 349817,\r\n    \"sapmIdentifier\": \"test4@10.20.42.106@/Linux\"\r\n  }",
          "value": "  {\r\n    \"owner\": {\r\n      \"id\": \"99bf8751-1d18-4268-91f8-e506c16b18c8\",\r\n      \"eid\": \"enduser\"\r\n    },\r\n    \"description\": \"Description\",\r\n    \"secretNotes\": \"New Secret Note\",\r\n    \"additionalInfo\": \"Info\",\r\n    \"sapmDbId\": 349817,\r\n    \"sapmIdentifier\": \"test4@10.20.42.106@/Linux\"\r\n  }",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "ryPk8_AhiDxswSrHPA_3N",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/bulkEditSAPMAccounts \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data-raw '\"  {\\r\\n    \\\"owner\\\": {\\r\\n      \\\"id\\\": \\\"99bf8751-1d18-4268-91f8-e506c16b18c8\\\",\\r\\n      \\\"eid\\\": \\\"enduser\\\"\\r\\n    },\\r\\n    \\\"description\\\": \\\"Description\\\",\\r\\n    \\\"secretNotes\\\": \\\"New Secret Note\\\",\\r\\n    \\\"additionalInfo\\\": \\\"Info\\\",\\r\\n    \\\"sapmDbId\\\": 349817,\\r\\n    \\\"sapmIdentifier\\\": \\\"test4@10.20.42.106@/Linux\\\"\\r\\n  }\"'"
        },
        {
          "id": "x4h7GDAsJVa8oyTcDpU5w",
          "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    \\\"owner\\\": {\\r\\n      \\\"id\\\": \\\"99bf8751-1d18-4268-91f8-e506c16b18c8\\\",\\r\\n      \\\"eid\\\": \\\"enduser\\\"\\r\\n    },\\r\\n    \\\"description\\\": \\\"Description\\\",\\r\\n    \\\"secretNotes\\\": \\\"New Secret Note\\\",\\r\\n    \\\"additionalInfo\\\": \\\"Info\\\",\\r\\n    \\\"sapmDbId\\\": 349817,\\r\\n    \\\"sapmIdentifier\\\": \\\"test4@10.20.42.106@/Linux\\\"\\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/bulkEditSAPMAccounts\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "dqKgZLOH8jQLJSrQe04eF",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/bulkEditSAPMAccounts\")\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    \\\"owner\\\": {\\r\\n      \\\"id\\\": \\\"99bf8751-1d18-4268-91f8-e506c16b18c8\\\",\\r\\n      \\\"eid\\\": \\\"enduser\\\"\\r\\n    },\\r\\n    \\\"description\\\": \\\"Description\\\",\\r\\n    \\\"secretNotes\\\": \\\"New Secret Note\\\",\\r\\n    \\\"additionalInfo\\\": \\\"Info\\\",\\r\\n    \\\"sapmDbId\\\": 349817,\\r\\n    \\\"sapmIdentifier\\\": \\\"test4@10.20.42.106@/Linux\\\"\\r\\n  }\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "6lux9PAz6h9gAbezLpqq8",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/bulkEditSAPMAccounts\"\n\npayload = json.dumps(\"  {\\r\\n    \\\"owner\\\": {\\r\\n      \\\"id\\\": \\\"99bf8751-1d18-4268-91f8-e506c16b18c8\\\",\\r\\n      \\\"eid\\\": \\\"enduser\\\"\\r\\n    },\\r\\n    \\\"description\\\": \\\"Description\\\",\\r\\n    \\\"secretNotes\\\": \\\"New Secret Note\\\",\\r\\n    \\\"additionalInfo\\\": \\\"Info\\\",\\r\\n    \\\"sapmDbId\\\": 349817,\\r\\n    \\\"sapmIdentifier\\\": \\\"test4@10.20.42.106@/Linux\\\"\\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": "ryPk8_AhiDxswSrHPA_3N"
    },
    "results": {
      "languages": [
        {
          "id": "WbrQu8dqdNyrUJNo0ZZAd",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "WbrQu8dqdNyrUJNo0ZZAd"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}