---
title: /createRole
slug: createrole
createdAt: 2024-01-09T12:30:00.561Z
---

{
  "id": "5nGhWufXcw1bu5pdBd96O",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "http://1.1.1.1/createRole",
    "servers": [
      {
        "url": "http://1.1.1.1/createRole"
      }
    ],
    "name": "",
    "description": "<ul>\n<li>\n<p>Calling this request is used to create a new role in the MPC Driven system</p>\n</li>\n<li>\n<p>NOTE - this function can not be called from Swagger, please use createRoleForSwagger instead.</p>\n</li>\n<li>\n<p>return - success or error StatusCode message</p>\n</li>\n<li>\n<p>Possible status codes:</p>\n</li>\n</ul>\n<p>0 - Role created successfully,</p>\n<p>1 - Role already exists,</p>\n<p>2 - Role name already exists,</p>\n<p>3 - Invalid name,</p>\n<p>4 - Invalid frequency,</p>\n<p>5 - Invalid amount limit,</p>\n<p>6 - Invalid fees limit,</p>\n<p>7 - Duplicate user,</p>\n<p>8 - Unknown user,</p>\n<p>9 - Invalid allowed operations due to removing admin operation to users in the admin group,</p>\n<p>10 - Invalid allowed operations due to not enough approvers in approval workflow</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "required",
          "name": "role",
          "type": "object",
          "example": "",
          "description": "UserRole (see MpcDriven/UserRole.py for examples on how to utilize this class)",
          "default": "{\n  \"Id\": \"2376234\",\n  \"Name\": \"Role name\",\n  \"Frequency\": 0,\n  \"IsAdmin\": true,\n  \"CanApproveTransactions\": false,\n  \"CanEditContactsAndAddressGroups\": true,\n  \"CanApproveMultisigTransactions\": false,\n  \"AmountLimit\": \"123\",\n  \"FeesLimit\": \"123\",\n  \"UserIds\": [\"bla@gk8.io\", \"bla2@gk8.io\"]\n}  \n",
          "schema": []
        },
        {
          "kind": "required",
          "name": "request_extra_data",
          "type": "object",
          "example": "",
          "description": "additional data for the administrative request",
          "default": "{\n  \"MessageNumber\": 5,\n  \"SessionId\": \"3478593863424051983840947\"\n}\n",
          "schema": []
        }
      ],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "customType": "createRoleRequest",
          "schema": [
            {
              "name": "FunctionData",
              "kind": "optional",
              "type": "object",
              "example": "",
              "schema": [
                {
                  "name": "Id",
                  "kind": "optional",
                  "type": "string",
                  "description": "Random UUID generated by the client",
                  "example": "2376234",
                  "default": "2376234"
                },
                {
                  "name": "Name",
                  "kind": "optional",
                  "type": "string",
                  "description": "Role name",
                  "example": "Role name",
                  "default": "Role name"
                },
                {
                  "name": "Frequency",
                  "kind": "optional",
                  "type": "integer",
                  "description": "Frequency (0 for daily, 1 for weekly)",
                  "example": 0,
                  "default": 0
                },
                {
                  "name": "IsAdmin",
                  "kind": "optional",
                  "type": "boolean",
                  "description": "Boolean flag indicating if the role is an admin",
                  "example": "true",
                  "default": "true"
                },
                {
                  "name": "CanApproveTransactions",
                  "kind": "optional",
                  "type": "boolean",
                  "description": "Boolean flag indicating if the role can approve transactions",
                  "example": "false",
                  "default": "false"
                },
                {
                  "name": "CanEditContactsAndAddressGroups",
                  "kind": "optional",
                  "type": "boolean",
                  "description": "Boolean flag indicating if the role can edit contacts and address groups",
                  "example": "true",
                  "default": "true"
                },
                {
                  "name": "CanApproveMultisigTransactions",
                  "kind": "optional",
                  "type": "boolean",
                  "description": "Boolean flag indicating if the role can approve multisig transactions",
                  "example": "false",
                  "default": "false"
                },
                {
                  "name": "AmountLimit",
                  "kind": "optional",
                  "type": "string",
                  "description": "Amount limit",
                  "example": "123",
                  "default": "123"
                },
                {
                  "name": "FeesLimit",
                  "kind": "optional",
                  "type": "string",
                  "description": "Fees limit",
                  "example": "123",
                  "default": "123"
                },
                {
                  "name": "UserIds",
                  "kind": "optional",
                  "type": "array",
                  "description": "List of user IDs associated with the role",
                  "example": "[\"bla@gk8.io\",\"bla2@gk8.io\"]",
                  "itemType": "string",
                  "customType": "string[]",
                  "itemExample": "",
                  "itemDefault": ""
                },
                {
                  "name": "RequestExtraData",
                  "kind": "optional",
                  "type": "object",
                  "description": "Additional data for the request",
                  "example": "",
                  "schema": [
                    {
                      "name": "MessageNumber",
                      "kind": "optional",
                      "type": "integer",
                      "description": "Message number",
                      "example": 5,
                      "default": 5
                    },
                    {
                      "name": "SessionId",
                      "kind": "optional",
                      "type": "string",
                      "description": "Session ID",
                      "example": "3478593863424051983840947",
                      "default": "3478593863424051983840947"
                    }
                  ]
                }
              ]
            },
            {
              "name": "Meta",
              "kind": "optional",
              "type": "object",
              "modelRef": "#/components/schemas/MetaTokencreateRole",
              "customType": "MetaTokencreateRole",
              "schema": [
                {
                  "name": "FunctionName",
                  "kind": "optional",
                  "type": "string",
                  "description": "The Function to be called",
                  "example": "createRole",
                  "default": "createRole"
                },
                {
                  "name": "RandomData",
                  "kind": "optional",
                  "type": "string",
                  "description": "Random Data",
                  "example": "288cd49d4b8bf00e7d6114b78d5668d5581d6b953fafef779133caa844cd4229",
                  "default": "288cd49d4b8bf00e7d6114b78d5668d5581d6b953fafef779133caa844cd4229"
                },
                {
                  "name": "Destination",
                  "kind": "optional",
                  "type": "string",
                  "description": "Id of the server",
                  "example": "",
                  "default": "b9cb8afe52f1d52521cf2b62dfe12146156ad5328f83c62c20c7da81b263356a61340de745c858998544c041798b01c2f4fac31bebe52a19280a32cd57d6d374ea"
                },
                {
                  "name": "Time",
                  "kind": "optional",
                  "type": "string",
                  "description": "UTC Time of execution",
                  "example": "2021-02-07T18:37:46.948Z",
                  "default": "2021-02-07T18:37:46.948Z"
                },
                {
                  "name": "Source",
                  "kind": "optional",
                  "type": "string",
                  "description": "User public key",
                  "example": "",
                  "default": "048b99461a70a49abe63fd585cb224177a22a92d2e9e4ddfbc0027887bee9d1843388f42a3eb2e740565e115ad8b7981abf59e3b03b771f4b063b53c517d7a9d99"
                },
                {
                  "name": "AccessToken",
                  "kind": "optional",
                  "type": "string",
                  "description": "Token used for authentication purposes",
                  "example": "51311c84d2c8fd2fafbe56ceb1fb30a99d3417abfc55769577338ab286798087",
                  "default": "51311c84d2c8fd2fafbe56ceb1fb30a99d3417abfc55769577338ab286798087"
                }
              ]
            }
          ],
          "modelRef": "#/components/schemas/createRoleRequest",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "success",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "customType": "createRoleResponse",
            "schema": [
              {
                "name": "FunctionData",
                "kind": "optional",
                "type": "object",
                "example": "",
                "schema": [
                  {
                    "name": "StatusCode",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Status code for the current run",
                    "example": 0,
                    "default": 0
                  }
                ]
              },
              {
                "name": "Meta",
                "kind": "optional",
                "type": "object",
                "modelRef": "#/components/schemas/MetaResponse",
                "customType": "MetaResponse",
                "schema": [
                  {
                    "name": "AccessToken",
                    "kind": "optional",
                    "type": "string",
                    "description": "The new access token generated after this operation",
                    "example": "a3e816b5bc04302d99da94705ec2309a4a63fe10d6aed3c5f6fc9e7ff27c6be6",
                    "default": "a3e816b5bc04302d99da94705ec2309a4a63fe10d6aed3c5f6fc9e7ff27c6be6"
                  },
                  {
                    "name": "Destination",
                    "kind": "optional",
                    "type": "string",
                    "description": "Id of the server",
                    "example": "042c671aeb148d9b2bb4918399c4c925f3764248c5ab2d5194ab0f32664132834692699a75e7fafb5af35f183b7d8a68bdc3b3e6ebfaff8ab555b9a3caf8090622",
                    "default": "042c671aeb148d9b2bb4918399c4c925f3764248c5ab2d5194ab0f32664132834692699a75e7fafb5af35f183b7d8a68bdc3b3e6ebfaff8ab555b9a3caf8090622"
                  },
                  {
                    "name": "Source",
                    "kind": "optional",
                    "type": "string",
                    "description": "User public key",
                    "example": "df4b76a23067a9d782d09a7372ed526ec713cf6d771fac4dbdb9610f7af36d570a157eed76986b8e85afde12888d10d10bef461399e490f3d7e4db44cde1b6e355",
                    "default": "df4b76a23067a9d782d09a7372ed526ec713cf6d771fac4dbdb9610f7af36d570a157eed76986b8e85afde12888d10d10bef461399e490f3d7e4db44cde1b6e355"
                  },
                  {
                    "name": "Time",
                    "kind": "optional",
                    "type": "string",
                    "description": "UTC Time of execution",
                    "example": "2021-02-14 09:58:52.320",
                    "default": "2021-02-14 09:58:52.320"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/createRoleResponse",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url 'http://1.1.1.1/createRole?role=%22{%5Cn%20%20%5C%22Id%5C%22%3A%20%5C%222376234%5C%22%2C%5Cn%20%20%5C%22Name%5C%22%3A%20%5C%22Role%20name%5C%22%2C%5Cn%20%20%5C%22Frequency%5C%22%3A%200%2C%5Cn%20%20%5C%22IsAdmin%5C%22%3A%20true%2C%5Cn%20%20%5C%22CanApproveTransactions%5C%22%3A%20false%2C%5Cn%20%20%5C%22CanEditContactsAndAddressGroups%5C%22%3A%20true%2C%5Cn%20%20%5C%22CanApproveMultisigTransactions%5C%22%3A%20false%2C%5Cn%20%20%5C%22AmountLimit%5C%22%3A%20%5C%22123%5C%22%2C%5Cn%20%20%5C%22FeesLimit%5C%22%3A%20%5C%22123%5C%22%2C%5Cn%20%20%5C%22UserIds%5C%22%3A%20[%5C%22bla%40gk8.io%5C%22%2C%20%5C%22bla2%40gk8.io%5C%22]%5Cn}%20%20%5Cn%22&request_extra_data=%22{%5Cn%20%20%5C%22MessageNumber%5C%22%3A%205%2C%5Cn%20%20%5C%22SessionId%5C%22%3A%20%5C%223478593863424051983840947%5C%22%5Cn}%5Cn%22' \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"FunctionData\": {\n     \"Id\": \"2376234\",\n     \"Name\": \"Role name\",\n     \"IsAdmin\": \"true\",\n     \"CanApproveTransactions\": \"false\",\n     \"CanEditContactsAndAddressGroups\": \"true\",\n     \"CanApproveMultisigTransactions\": \"false\",\n     \"AmountLimit\": \"123\",\n     \"FeesLimit\": \"123\",\n     \"RequestExtraData\": {\n     \"MessageNumber\": 5,\n     \"SessionId\": \"3478593863424051983840947\"\n     }\n     },\n     \"Meta\": {\n     \"FunctionName\": \"createRole\",\n     \"RandomData\": \"288cd49d4b8bf00e7d6114b78d5668d5581d6b953fafef779133caa844cd4229\",\n     \"Destination\": \"b9cb8afe52f1d52521cf2b62dfe12146156ad5328f83c62c20c7da81b263356a61340de745c858998544c041798b01c2f4fac31bebe52a19280a32cd57d6d374ea\",\n     \"Time\": \"2021-02-07T18:37:46.948Z\",\n     \"Source\": \"048b99461a70a49abe63fd585cb224177a22a92d2e9e4ddfbc0027887bee9d1843388f42a3eb2e740565e115ad8b7981abf59e3b03b771f4b063b53c517d7a9d99\",\n     \"AccessToken\": \"51311c84d2c8fd2fafbe56ceb1fb30a99d3417abfc55769577338ab286798087\"\n     }\n     }'"
        },
        {
          "id": "example-1-javascript",
          "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({\n   \"FunctionData\": {\n      \"Id\": \"2376234\",\n      \"Name\": \"Role name\",\n      \"IsAdmin\": \"true\",\n      \"CanApproveTransactions\": \"false\",\n      \"CanEditContactsAndAddressGroups\": \"true\",\n      \"CanApproveMultisigTransactions\": \"false\",\n      \"AmountLimit\": \"123\",\n      \"FeesLimit\": \"123\",\n      \"RequestExtraData\": {\n         \"MessageNumber\": 5,\n         \"SessionId\": \"3478593863424051983840947\"\n      }\n   },\n   \"Meta\": {\n      \"FunctionName\": \"createRole\",\n      \"RandomData\": \"288cd49d4b8bf00e7d6114b78d5668d5581d6b953fafef779133caa844cd4229\",\n      \"Destination\": \"b9cb8afe52f1d52521cf2b62dfe12146156ad5328f83c62c20c7da81b263356a61340de745c858998544c041798b01c2f4fac31bebe52a19280a32cd57d6d374ea\",\n      \"Time\": \"2021-02-07T18:37:46.948Z\",\n      \"Source\": \"048b99461a70a49abe63fd585cb224177a22a92d2e9e4ddfbc0027887bee9d1843388f42a3eb2e740565e115ad8b7981abf59e3b03b771f4b063b53c517d7a9d99\",\n      \"AccessToken\": \"51311c84d2c8fd2fafbe56ceb1fb30a99d3417abfc55769577338ab286798087\"\n   }\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"http://1.1.1.1/createRole?role=\\\"{\\\\n  \\\\\\\"Id\\\\\\\": \\\\\\\"2376234\\\\\\\",\\\\n  \\\\\\\"Name\\\\\\\": \\\\\\\"Role name\\\\\\\",\\\\n  \\\\\\\"Frequency\\\\\\\": 0,\\\\n  \\\\\\\"IsAdmin\\\\\\\": true,\\\\n  \\\\\\\"CanApproveTransactions\\\\\\\": false,\\\\n  \\\\\\\"CanEditContactsAndAddressGroups\\\\\\\": true,\\\\n  \\\\\\\"CanApproveMultisigTransactions\\\\\\\": false,\\\\n  \\\\\\\"AmountLimit\\\\\\\": \\\\\\\"123\\\\\\\",\\\\n  \\\\\\\"FeesLimit\\\\\\\": \\\\\\\"123\\\\\\\",\\\\n  \\\\\\\"UserIds\\\\\\\": [\\\\\\\"bla@gk8.io\\\\\\\", \\\\\\\"bla2@gk8.io\\\\\\\"]\\\\n}  \\\\n\\\"&request_extra_data=\\\"{\\\\n  \\\\\\\"MessageNumber\\\\\\\": 5,\\\\n  \\\\\\\"SessionId\\\\\\\": \\\\\\\"3478593863424051983840947\\\\\\\"\\\\n}\\\\n\\\"\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "example-2-ruby",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://1.1.1.1/createRole?role=\\\"{\\n  \\\\\"Id\\\\\": \\\\\"2376234\\\\\",\\n  \\\\\"Name\\\\\": \\\\\"Role name\\\\\",\\n  \\\\\"Frequency\\\\\": 0,\\n  \\\\\"IsAdmin\\\\\": true,\\n  \\\\\"CanApproveTransactions\\\\\": false,\\n  \\\\\"CanEditContactsAndAddressGroups\\\\\": true,\\n  \\\\\"CanApproveMultisigTransactions\\\\\": false,\\n  \\\\\"AmountLimit\\\\\": \\\\\"123\\\\\",\\n  \\\\\"FeesLimit\\\\\": \\\\\"123\\\\\",\\n  \\\\\"UserIds\\\\\": [\\\\\"bla@gk8.io\\\\\", \\\\\"bla2@gk8.io\\\\\"]\\n}  \\n\\\"&request_extra_data=\\\"{\\n  \\\\\"MessageNumber\\\\\": 5,\\n  \\\\\"SessionId\\\\\": \\\\\"3478593863424051983840947\\\\\"\\n}\\n\\\"\")\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({\n   \"FunctionData\": {\n      \"Id\": \"2376234\",\n      \"Name\": \"Role name\",\n      \"IsAdmin\": \"true\",\n      \"CanApproveTransactions\": \"false\",\n      \"CanEditContactsAndAddressGroups\": \"true\",\n      \"CanApproveMultisigTransactions\": \"false\",\n      \"AmountLimit\": \"123\",\n      \"FeesLimit\": \"123\",\n      \"RequestExtraData\": {\n         \"MessageNumber\": 5,\n         \"SessionId\": \"3478593863424051983840947\"\n      }\n   },\n   \"Meta\": {\n      \"FunctionName\": \"createRole\",\n      \"RandomData\": \"288cd49d4b8bf00e7d6114b78d5668d5581d6b953fafef779133caa844cd4229\",\n      \"Destination\": \"b9cb8afe52f1d52521cf2b62dfe12146156ad5328f83c62c20c7da81b263356a61340de745c858998544c041798b01c2f4fac31bebe52a19280a32cd57d6d374ea\",\n      \"Time\": \"2021-02-07T18:37:46.948Z\",\n      \"Source\": \"048b99461a70a49abe63fd585cb224177a22a92d2e9e4ddfbc0027887bee9d1843388f42a3eb2e740565e115ad8b7981abf59e3b03b771f4b063b53c517d7a9d99\",\n      \"AccessToken\": \"51311c84d2c8fd2fafbe56ceb1fb30a99d3417abfc55769577338ab286798087\"\n   }\n})\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "example-3-python",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://1.1.1.1/createRole?role=\\\"{\\\\n  \\\\\\\"Id\\\\\\\": \\\\\\\"2376234\\\\\\\",\\\\n  \\\\\\\"Name\\\\\\\": \\\\\\\"Role name\\\\\\\",\\\\n  \\\\\\\"Frequency\\\\\\\": 0,\\\\n  \\\\\\\"IsAdmin\\\\\\\": true,\\\\n  \\\\\\\"CanApproveTransactions\\\\\\\": false,\\\\n  \\\\\\\"CanEditContactsAndAddressGroups\\\\\\\": true,\\\\n  \\\\\\\"CanApproveMultisigTransactions\\\\\\\": false,\\\\n  \\\\\\\"AmountLimit\\\\\\\": \\\\\\\"123\\\\\\\",\\\\n  \\\\\\\"FeesLimit\\\\\\\": \\\\\\\"123\\\\\\\",\\\\n  \\\\\\\"UserIds\\\\\\\": [\\\\\\\"bla@gk8.io\\\\\\\", \\\\\\\"bla2@gk8.io\\\\\\\"]\\\\n}  \\\\n\\\"&request_extra_data=\\\"{\\\\n  \\\\\\\"MessageNumber\\\\\\\": 5,\\\\n  \\\\\\\"SessionId\\\\\\\": \\\\\\\"3478593863424051983840947\\\\\\\"\\\\n}\\\\n\\\"\"\n\npayload = json.dumps({\n   \"FunctionData\": {\n      \"Id\": \"2376234\",\n      \"Name\": \"Role name\",\n      \"IsAdmin\": \"true\",\n      \"CanApproveTransactions\": \"false\",\n      \"CanEditContactsAndAddressGroups\": \"true\",\n      \"CanApproveMultisigTransactions\": \"false\",\n      \"AmountLimit\": \"123\",\n      \"FeesLimit\": \"123\",\n      \"RequestExtraData\": {\n         \"MessageNumber\": 5,\n         \"SessionId\": \"3478593863424051983840947\"\n      }\n   },\n   \"Meta\": {\n      \"FunctionName\": \"createRole\",\n      \"RandomData\": \"288cd49d4b8bf00e7d6114b78d5668d5581d6b953fafef779133caa844cd4229\",\n      \"Destination\": \"b9cb8afe52f1d52521cf2b62dfe12146156ad5328f83c62c20c7da81b263356a61340de745c858998544c041798b01c2f4fac31bebe52a19280a32cd57d6d374ea\",\n      \"Time\": \"2021-02-07T18:37:46.948Z\",\n      \"Source\": \"048b99461a70a49abe63fd585cb224177a22a92d2e9e4ddfbc0027887bee9d1843388f42a3eb2e740565e115ad8b7981abf59e3b03b771f4b063b53c517d7a9d99\",\n      \"AccessToken\": \"51311c84d2c8fd2fafbe56ceb1fb30a99d3417abfc55769577338ab286798087\"\n   }\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": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// success\n{\n  \"FunctionData\": {\n    \"StatusCode\": 0\n  },\n  \"Meta\": {\n    \"AccessToken\": \"a3e816b5bc04302d99da94705ec2309a4a63fe10d6aed3c5f6fc9e7ff27c6be6\",\n    \"Destination\": \"042c671aeb148d9b2bb4918399c4c925f3764248c5ab2d5194ab0f32664132834692699a75e7fafb5af35f183b7d8a68bdc3b3e6ebfaff8ab555b9a3caf8090622\",\n    \"Source\": \"df4b76a23067a9d782d09a7372ed526ec713cf6d771fac4dbdb9610f7af36d570a157eed76986b8e85afde12888d10d10bef461399e490f3d7e4db44cde1b6e355\",\n    \"Time\": \"2021-02-14 09:58:52.320\"\n  }\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "id": "n5Ok0LtxnMCyuoAzC3s2g",
      "type": "bulleted-list",
      "children": [
        {
          "id": "pLGivIagWeB8B5QLlYVV2",
          "type": "list-item",
          "children": [
            {
              "id": "Ta7QuZmFr91eah3U-7JdU",
              "type": "list-item-child",
              "children": [
                {
                  "text": "Calling this request is used to create a new role in the MPC Driven system",
                  "id": "X-12Nt1cd-rgTdLgGq0Kw"
                }
              ]
            }
          ]
        },
        {
          "id": "grbNwWRK4ggV-BG2xqpbk",
          "type": "list-item",
          "children": [
            {
              "id": "iUciQxzFoqX6O1SIxrCRT",
              "type": "list-item-child",
              "children": [
                {
                  "text": "NOTE - this function can not be called from Swagger, please use createRoleForSwagger instead.",
                  "id": "pGBDzP1Mv58Qa2jMeTkVv"
                }
              ]
            }
          ]
        },
        {
          "id": "ctRvtML_8fNYcvFD3pQFy",
          "type": "list-item",
          "children": [
            {
              "id": "AnTnmGiYJ2Ki1NjNYYgOE",
              "type": "list-item-child",
              "children": [
                {
                  "text": "return - success or error StatusCode message",
                  "id": "2_aYK_YO0o8EnFB6snamc"
                }
              ]
            }
          ]
        },
        {
          "id": "M9fXAmRutV-GBTg3BxBVo",
          "type": "list-item",
          "children": [
            {
              "id": "Nn-kUmag33SZ15biIVC71",
              "type": "list-item-child",
              "children": [
                {
                  "text": "Possible status codes:",
                  "id": "9Oebnaiqq9-c2PAXxpofR"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": "lw98Zgl8QStNphHKE5786",
      "type": "paragraph",
      "children": [
        {
          "text": "0 - Role created successfully,",
          "id": "9BH2fhJ6fPfFHklN0dTqs"
        }
      ]
    },
    {
      "id": "3S5fOFE6uXYw6wJbpsdT5",
      "type": "paragraph",
      "children": [
        {
          "text": "1 - Role already exists,",
          "id": "E6oecqlyzfMaeKSGO4Ihl"
        }
      ]
    },
    {
      "id": "tA12Swh7hIoo9SyoM_npc",
      "type": "paragraph",
      "children": [
        {
          "text": "2 - Role name already exists,",
          "id": "wV0iGRFj29YvaEyKxLmh6"
        }
      ]
    },
    {
      "id": "JnRbHa3m9UnZndHnZBxSY",
      "type": "paragraph",
      "children": [
        {
          "text": "3 - Invalid name,",
          "id": "368FiBVxXk844E8hiCYJ3"
        }
      ]
    },
    {
      "id": "WmcqNaB9eFWam3dLB9cKN",
      "type": "paragraph",
      "children": [
        {
          "text": "4 - Invalid frequency,",
          "id": "tsKCyRNtaQuSq0sTROet5"
        }
      ]
    },
    {
      "id": "l1LTHb3e82Y67d8Md33dx",
      "type": "paragraph",
      "children": [
        {
          "text": "5 - Invalid amount limit,",
          "id": "6bqAn8YA6zqGtIlOPuMm0"
        }
      ]
    },
    {
      "id": "_sJoSjyzuXlCDqKIfhhtY",
      "type": "paragraph",
      "children": [
        {
          "text": "6 - Invalid fees limit,",
          "id": "vsqI-nxCC6AQoi0CUDf0_"
        }
      ]
    },
    {
      "id": "PNMWN9jHmgTppYw3JUTEX",
      "type": "paragraph",
      "children": [
        {
          "text": "7 - Duplicate user,",
          "id": "Xv9SjjKde3y9IQFOUoXx6"
        }
      ]
    },
    {
      "id": "d1oCZfLETRwqkp6IzUrD5",
      "type": "paragraph",
      "children": [
        {
          "text": "8 - Unknown user,",
          "id": "EpTlbm4i7awsKfJS5-33d"
        }
      ]
    },
    {
      "id": "J0plR8rDkpsGQIEcFq-TW",
      "type": "paragraph",
      "children": [
        {
          "text": "9 - Invalid allowed operations due to removing admin operation to users in the admin group,",
          "id": "dSMptJ8ypEKerjgtwuLxz"
        }
      ]
    },
    {
      "id": "OPOwQRJ_sZGIXarFoqoau",
      "type": "paragraph",
      "children": [
        {
          "text": "10 - Invalid allowed operations due to not enough approvers in approval workflow",
          "id": "eqiAgcvSsJciHXQ7Y2CFD"
        }
      ]
    }
  ]
}