---
title: Update Element Type
slug: kron-pam-api-collection-3-9-0/update-element-type
docTags: 
createdAt: 2026-10-21T06:10:28.166Z
---

{
  "id": "_jiktQeG0o6NmbEkNj_h9",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "{{url}}/aioc-rest-web/rest/elementType/saveElementType",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<p>This method updates an existing element type in KRON PAM.</p>\n<ul>\n<li>\n<p><strong>Mandatory Fields</strong>:</p>\n<ul>\n<li>\n<p><code>\"elementTypeId\"</code></p>\n</li>\n<li>\n<p><code>\"elementTypeName\"</code></p>\n</li>\n<li>\n<p><code>\"dbId\"</code></p>\n</li>\n</ul>\n</li>\n</ul>\n<p>These fields must be included in the request body when updating the element type information.</p>",
    "contentType": "application/json",
    "request": {
      "headerParameters": [
        {
          "name": "Content-Type",
          "description": "",
          "default": "application/json",
          "value": "application/json",
          "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": "{         \r\n        \"dbId\": \"8643\",                                                   \r\n      \"elementTypeId\": \"acme\",                                \r\n        \"elementTypeName\": \"ACME\",                       \r\n        \"vendor\": {\r\n            \"dbId\": 57,\r\n            \"name\": \"Acme\"\r\n        },\r\n        \"category\": {\r\n            \"dbId\": 54,\r\n            \"name\": \"Other\"\r\n        },\r\n        \"elementTypeProperties\": [{\r\n                \"dbId\": 20474,\r\n                \"elementTypePropertyValue\": \".*(?i)user(name)?.*\",\r\n                \"elementTypePropertyKey\": \"enforcer.terminal.behaviour.exc_last_line_patterns\",\r\n                \"elementTypePropertyType\": {\r\n                    \"displayName\": \"enforcer.terminal.behaviour.exc_last_line_patterns\",\r\n                    \"allowMultipleValues\": true,\r\n                    \"valuesPredefined\": false,\r\n                    \"elementTypePropertyValues\": null,\r\n                    \"elementTypePropertyKey\": \"enforcer.terminal.behaviour.exc_last_line_patterns\",\r\n                    \"valueType\": \"REGEX\",\r\n                    \"encryption\": false\r\n                }\r\n            },\r\n            {\r\n                \"dbId\": 130,\r\n                \"elementTypePropertyValue\": \".*(?i)password.*[:|&gt].*\",\r\n                \"elementTypePropertyKey\": \"enforcer.terminal.behaviour.exc_last_line_patterns\",\r\n                \"elementTypePropertyType\": {\r\n                    \"displayName\": \"enforcer.terminal.behaviour.exc_last_line_patterns\",\r\n                    \"allowMultipleValues\": true,\r\n                    \"valuesPredefined\": false,\r\n                    \"elementTypePropertyValues\": null,\r\n                    \"elementTypePropertyKey\": \"enforcer.terminal.behaviour.exc_last_line_patterns\",\r\n                    \"valueType\": \"REGEX\",\r\n                    \"encryption\": false\r\n                }\r\n            }]\r\n    }\r\n",
          "value": "{         \r\n        \"dbId\": \"8643\",                                                   \r\n      \"elementTypeId\": \"acme\",                                \r\n        \"elementTypeName\": \"ACME\",                       \r\n        \"vendor\": {\r\n            \"dbId\": 57,\r\n            \"name\": \"Acme\"\r\n        },\r\n        \"category\": {\r\n            \"dbId\": 54,\r\n            \"name\": \"Other\"\r\n        },\r\n        \"elementTypeProperties\": [{\r\n                \"dbId\": 20474,\r\n                \"elementTypePropertyValue\": \".*(?i)user(name)?.*\",\r\n                \"elementTypePropertyKey\": \"enforcer.terminal.behaviour.exc_last_line_patterns\",\r\n                \"elementTypePropertyType\": {\r\n                    \"displayName\": \"enforcer.terminal.behaviour.exc_last_line_patterns\",\r\n                    \"allowMultipleValues\": true,\r\n                    \"valuesPredefined\": false,\r\n                    \"elementTypePropertyValues\": null,\r\n                    \"elementTypePropertyKey\": \"enforcer.terminal.behaviour.exc_last_line_patterns\",\r\n                    \"valueType\": \"REGEX\",\r\n                    \"encryption\": false\r\n                }\r\n            },\r\n            {\r\n                \"dbId\": 130,\r\n                \"elementTypePropertyValue\": \".*(?i)password.*[:|&gt].*\",\r\n                \"elementTypePropertyKey\": \"enforcer.terminal.behaviour.exc_last_line_patterns\",\r\n                \"elementTypePropertyType\": {\r\n                    \"displayName\": \"enforcer.terminal.behaviour.exc_last_line_patterns\",\r\n                    \"allowMultipleValues\": true,\r\n                    \"valuesPredefined\": false,\r\n                    \"elementTypePropertyValues\": null,\r\n                    \"elementTypePropertyKey\": \"enforcer.terminal.behaviour.exc_last_line_patterns\",\r\n                    \"valueType\": \"REGEX\",\r\n                    \"encryption\": false\r\n                }\r\n            }]\r\n    }\r\n",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "500",
        "description": "updateElementType",
        "jsonExample": "Element Type Id already exists."
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "p4AqCSKf6uwoShrvReavA",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/elementType/saveElementType \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}' \\\n     --data '\"{         \\r\\n        \\\"dbId\\\": \\\"8643\\\",                                                   \\r\\n      \\\"elementTypeId\\\": \\\"acme\\\",                                \\r\\n        \\\"elementTypeName\\\": \\\"ACME\\\",                       \\r\\n        \\\"vendor\\\": {\\r\\n            \\\"dbId\\\": 57,\\r\\n            \\\"name\\\": \\\"Acme\\\"\\r\\n        },\\r\\n        \\\"category\\\": {\\r\\n            \\\"dbId\\\": 54,\\r\\n            \\\"name\\\": \\\"Other\\\"\\r\\n        },\\r\\n        \\\"elementTypeProperties\\\": [{\\r\\n                \\\"dbId\\\": 20474,\\r\\n                \\\"elementTypePropertyValue\\\": \\\".*(?i)user(name)?.*\\\",\\r\\n                \\\"elementTypePropertyKey\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                \\\"elementTypePropertyType\\\": {\\r\\n                    \\\"displayName\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                    \\\"allowMultipleValues\\\": true,\\r\\n                    \\\"valuesPredefined\\\": false,\\r\\n                    \\\"elementTypePropertyValues\\\": null,\\r\\n                    \\\"elementTypePropertyKey\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                    \\\"valueType\\\": \\\"REGEX\\\",\\r\\n                    \\\"encryption\\\": false\\r\\n                }\\r\\n            },\\r\\n            {\\r\\n                \\\"dbId\\\": 130,\\r\\n                \\\"elementTypePropertyValue\\\": \\\".*(?i)password.*[:|&gt].*\\\",\\r\\n                \\\"elementTypePropertyKey\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                \\\"elementTypePropertyType\\\": {\\r\\n                    \\\"displayName\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                    \\\"allowMultipleValues\\\": true,\\r\\n                    \\\"valuesPredefined\\\": false,\\r\\n                    \\\"elementTypePropertyValues\\\": null,\\r\\n                    \\\"elementTypePropertyKey\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                    \\\"valueType\\\": \\\"REGEX\\\",\\r\\n                    \\\"encryption\\\": false\\r\\n                }\\r\\n            }]\\r\\n    }\\r\\n\"'"
        },
        {
          "id": "jQJZcwQ7dAeXV3Crmbmcf",
          "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(\"{         \\r\\n        \\\"dbId\\\": \\\"8643\\\",                                                   \\r\\n      \\\"elementTypeId\\\": \\\"acme\\\",                                \\r\\n        \\\"elementTypeName\\\": \\\"ACME\\\",                       \\r\\n        \\\"vendor\\\": {\\r\\n            \\\"dbId\\\": 57,\\r\\n            \\\"name\\\": \\\"Acme\\\"\\r\\n        },\\r\\n        \\\"category\\\": {\\r\\n            \\\"dbId\\\": 54,\\r\\n            \\\"name\\\": \\\"Other\\\"\\r\\n        },\\r\\n        \\\"elementTypeProperties\\\": [{\\r\\n                \\\"dbId\\\": 20474,\\r\\n                \\\"elementTypePropertyValue\\\": \\\".*(?i)user(name)?.*\\\",\\r\\n                \\\"elementTypePropertyKey\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                \\\"elementTypePropertyType\\\": {\\r\\n                    \\\"displayName\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                    \\\"allowMultipleValues\\\": true,\\r\\n                    \\\"valuesPredefined\\\": false,\\r\\n                    \\\"elementTypePropertyValues\\\": null,\\r\\n                    \\\"elementTypePropertyKey\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                    \\\"valueType\\\": \\\"REGEX\\\",\\r\\n                    \\\"encryption\\\": false\\r\\n                }\\r\\n            },\\r\\n            {\\r\\n                \\\"dbId\\\": 130,\\r\\n                \\\"elementTypePropertyValue\\\": \\\".*(?i)password.*[:|&gt].*\\\",\\r\\n                \\\"elementTypePropertyKey\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                \\\"elementTypePropertyType\\\": {\\r\\n                    \\\"displayName\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                    \\\"allowMultipleValues\\\": true,\\r\\n                    \\\"valuesPredefined\\\": false,\\r\\n                    \\\"elementTypePropertyValues\\\": null,\\r\\n                    \\\"elementTypePropertyKey\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                    \\\"valueType\\\": \\\"REGEX\\\",\\r\\n                    \\\"encryption\\\": false\\r\\n                }\\r\\n            }]\\r\\n    }\\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/elementType/saveElementType\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "4K2LEEjofZu8f9pdk0ng7",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/elementType/saveElementType\")\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(\"{         \\r\\n        \\\"dbId\\\": \\\"8643\\\",                                                   \\r\\n      \\\"elementTypeId\\\": \\\"acme\\\",                                \\r\\n        \\\"elementTypeName\\\": \\\"ACME\\\",                       \\r\\n        \\\"vendor\\\": {\\r\\n            \\\"dbId\\\": 57,\\r\\n            \\\"name\\\": \\\"Acme\\\"\\r\\n        },\\r\\n        \\\"category\\\": {\\r\\n            \\\"dbId\\\": 54,\\r\\n            \\\"name\\\": \\\"Other\\\"\\r\\n        },\\r\\n        \\\"elementTypeProperties\\\": [{\\r\\n                \\\"dbId\\\": 20474,\\r\\n                \\\"elementTypePropertyValue\\\": \\\".*(?i)user(name)?.*\\\",\\r\\n                \\\"elementTypePropertyKey\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                \\\"elementTypePropertyType\\\": {\\r\\n                    \\\"displayName\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                    \\\"allowMultipleValues\\\": true,\\r\\n                    \\\"valuesPredefined\\\": false,\\r\\n                    \\\"elementTypePropertyValues\\\": null,\\r\\n                    \\\"elementTypePropertyKey\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                    \\\"valueType\\\": \\\"REGEX\\\",\\r\\n                    \\\"encryption\\\": false\\r\\n                }\\r\\n            },\\r\\n            {\\r\\n                \\\"dbId\\\": 130,\\r\\n                \\\"elementTypePropertyValue\\\": \\\".*(?i)password.*[:|&gt].*\\\",\\r\\n                \\\"elementTypePropertyKey\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                \\\"elementTypePropertyType\\\": {\\r\\n                    \\\"displayName\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                    \\\"allowMultipleValues\\\": true,\\r\\n                    \\\"valuesPredefined\\\": false,\\r\\n                    \\\"elementTypePropertyValues\\\": null,\\r\\n                    \\\"elementTypePropertyKey\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                    \\\"valueType\\\": \\\"REGEX\\\",\\r\\n                    \\\"encryption\\\": false\\r\\n                }\\r\\n            }]\\r\\n    }\\r\\n\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "rFrU4u0hEojlFwfxRLNPM",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/elementType/saveElementType\"\n\npayload = json.dumps(\"{         \\r\\n        \\\"dbId\\\": \\\"8643\\\",                                                   \\r\\n      \\\"elementTypeId\\\": \\\"acme\\\",                                \\r\\n        \\\"elementTypeName\\\": \\\"ACME\\\",                       \\r\\n        \\\"vendor\\\": {\\r\\n            \\\"dbId\\\": 57,\\r\\n            \\\"name\\\": \\\"Acme\\\"\\r\\n        },\\r\\n        \\\"category\\\": {\\r\\n            \\\"dbId\\\": 54,\\r\\n            \\\"name\\\": \\\"Other\\\"\\r\\n        },\\r\\n        \\\"elementTypeProperties\\\": [{\\r\\n                \\\"dbId\\\": 20474,\\r\\n                \\\"elementTypePropertyValue\\\": \\\".*(?i)user(name)?.*\\\",\\r\\n                \\\"elementTypePropertyKey\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                \\\"elementTypePropertyType\\\": {\\r\\n                    \\\"displayName\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                    \\\"allowMultipleValues\\\": true,\\r\\n                    \\\"valuesPredefined\\\": false,\\r\\n                    \\\"elementTypePropertyValues\\\": null,\\r\\n                    \\\"elementTypePropertyKey\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                    \\\"valueType\\\": \\\"REGEX\\\",\\r\\n                    \\\"encryption\\\": false\\r\\n                }\\r\\n            },\\r\\n            {\\r\\n                \\\"dbId\\\": 130,\\r\\n                \\\"elementTypePropertyValue\\\": \\\".*(?i)password.*[:|&gt].*\\\",\\r\\n                \\\"elementTypePropertyKey\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                \\\"elementTypePropertyType\\\": {\\r\\n                    \\\"displayName\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                    \\\"allowMultipleValues\\\": true,\\r\\n                    \\\"valuesPredefined\\\": false,\\r\\n                    \\\"elementTypePropertyValues\\\": null,\\r\\n                    \\\"elementTypePropertyKey\\\": \\\"enforcer.terminal.behaviour.exc_last_line_patterns\\\",\\r\\n                    \\\"valueType\\\": \\\"REGEX\\\",\\r\\n                    \\\"encryption\\\": false\\r\\n                }\\r\\n            }]\\r\\n    }\\r\\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": "p4AqCSKf6uwoShrvReavA"
    },
    "results": {
      "languages": [
        {
          "id": "7VttpTJvghYPNqlwtK9Ie",
          "language": "500",
          "code": "Element Type Id already exists."
        }
      ],
      "selectedLanguageId": "7VttpTJvghYPNqlwtK9Ie"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}