---
title: /addCollector
slug: addcollector
createdAt: 2024-01-09T12:30:00.567Z
---

{
  "id": "ICBvOE3yzb15V9GFAHbfh",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "http://1.1.1.1/addCollector",
    "servers": [
      {
        "url": "http://1.1.1.1/addCollector"
      }
    ],
    "name": "",
    "description": "<p>#IMPORTANT - can not be executed on Swagger UI</p>\n<p>Calling this request can be used for adding a new collector to MPC</p>\n<ul>\n<li>\n<p>return - json with results and status code</p>\n</li>\n<li>\n<p>Possible status codes:</p>\n</li>\n</ul>\n<p>OK = 0,</p>\n<p>ACCOUNT_EXISTS = 1,</p>\n<p>IS_ALREADY_RUNNING = 2,</p>\n<p>NOT_EXISTS = 3,</p>\n<p>PERMISSION_DENIED = 4,</p>\n<p>BAD_REQUEST = 400,</p>\n<p>TECHNICAL_ERROR = 500</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "required",
          "name": "config",
          "type": "object",
          "example": "",
          "description": "the config that has been built for the collector",
          "default": "{\n  \"account_id_to_collector_address\": {\n    \"1\": \"0xF1722F2c8Bab975C321321E2942E0dCb951B9C4F\"\n  },\n  \"network_symbol_to_network_limits\": {\n    \"ETH\": {\n      \"symbol\": \"ETH\",\n      \"limits\": [\n        {\n          \"max_total_fee\": 10000000000000000000,\n          \"max_priority_fee\": 1000000000000\n        }\n      ]\n    }\n  },\n  \"currency_symbol_to_currency_limits\": {\n    \"ETH\": {\n      \"symbol\": \"ETH\",\n      \"limits\": [\n        {\n          \"fee_ratio\": 1,\n          \"fee_cap\": 132000000854001\n        }\n      ]\n    }\n  }\n}\n",
          "schema": []
        }
      ],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "customType": "addCollectorRequest",
          "schema": [
            {
              "name": "FunctionData",
              "kind": "optional",
              "type": "object",
              "example": "",
              "schema": [
                {
                  "name": "Config",
                  "kind": "optional",
                  "type": "object",
                  "description": "The configuration data for this function.",
                  "example": "{\"Accounts\":{\"1\":{\"CollectorAddress\":\"0xF1722F2c8Bab975C321321E2942E0dCb951B9C4F\"}},\"CollectorId\":\"1\",\"CreationTime\":10,\"CreatorUserId\":\"bob@gk8.io\",\"Limits\":{\"Currencies\":{\"ETH\":{\"FeeCap\":\"132000000854001\",\"FeeRatio\":\"1\"}},\"Networks\":{\"ETH\":{\"MaxPriorityFee\":null,\"MaxTotalFee\":\"10000000000000000000\"}}},\"Name\":\"myCollector\",\"Type\":0}",
                  "schema": [
                    {
                      "name": "Accounts",
                      "kind": "optional",
                      "type": "object",
                      "description": "The accounts associated with this function.",
                      "example": "{\"1\":{\"CollectorAddress\":\"0xF1722F2c8Bab975C321321E2942E0dCb951B9C4F\"}}",
                      "schema": [
                        {
                          "name": "1",
                          "kind": "optional",
                          "type": "object",
                          "example": "",
                          "schema": [
                            {
                              "name": "CollectorAddress",
                              "kind": "optional",
                              "type": "string",
                              "description": "The address of the collector account.",
                              "example": "0xF1722F2c8Bab975C321321E2942E0dCb951B9C4F",
                              "default": "0xF1722F2c8Bab975C321321E2942E0dCb951B9C4F"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "CollectorId",
                      "kind": "optional",
                      "type": "string",
                      "description": "The ID of the collector.",
                      "example": "1",
                      "default": "1"
                    },
                    {
                      "name": "CreationTime",
                      "kind": "optional",
                      "type": "integer",
                      "description": "The timestamp of when this function was created.",
                      "example": 10,
                      "default": 10
                    },
                    {
                      "name": "CreatorUserId",
                      "kind": "optional",
                      "type": "string",
                      "description": "The user ID of the creator of this function.",
                      "example": "bob@gk8.io",
                      "default": "bob@gk8.io"
                    },
                    {
                      "name": "Limits",
                      "kind": "optional",
                      "type": "object",
                      "description": "The limits associated with this function.",
                      "example": "{\"Currencies\":{\"ETH\":{\"FeeCap\":\"132000000854001\",\"FeeRatio\":\"1\"}},\"Networks\":{\"ETH\":{\"MaxPriorityFee\":null,\"MaxTotalFee\":\"10000000000000000000\"}}}",
                      "schema": [
                        {
                          "name": "Currencies",
                          "kind": "optional",
                          "type": "object",
                          "description": "The currencies associated with this function.",
                          "example": "",
                          "schema": [
                            {
                              "name": "ETH",
                              "kind": "optional",
                              "type": "object",
                              "example": "",
                              "schema": [
                                {
                                  "name": "FeeCap",
                                  "kind": "optional",
                                  "type": "string",
                                  "description": "The maximum fee allowed for this currency.",
                                  "example": "132000000854001",
                                  "default": "132000000854001"
                                },
                                {
                                  "name": "FeeRatio",
                                  "kind": "optional",
                                  "type": "string",
                                  "description": "The fee ratio for this currency.",
                                  "example": "1",
                                  "default": "1"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name": "Networks",
                          "kind": "optional",
                          "type": "object",
                          "description": "The networks associated with this function.",
                          "example": "",
                          "schema": [
                            {
                              "name": "ETH",
                              "kind": "optional",
                              "type": "object",
                              "example": "",
                              "schema": [
                                {
                                  "name": "MaxPriorityFee",
                                  "kind": "optional",
                                  "type": "string",
                                  "description": "The maximum priority fee allowed for this network.",
                                  "example": ""
                                },
                                {
                                  "name": "MaxTotalFee",
                                  "kind": "optional",
                                  "type": "string",
                                  "description": "The maximum total fee allowed for this network.",
                                  "example": "10000000000000000000",
                                  "default": "10000000000000000000"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "Name",
                      "kind": "optional",
                      "type": "string",
                      "description": "The name of this function.",
                      "example": "myCollector",
                      "default": "myCollector"
                    },
                    {
                      "name": "Type",
                      "kind": "optional",
                      "type": "integer",
                      "description": "The type of this function.",
                      "example": 0,
                      "default": 0
                    }
                  ]
                }
              ]
            },
            {
              "name": "Meta",
              "kind": "optional",
              "type": "object",
              "modelRef": "#/components/schemas/MetaTokenaddCollector",
              "customType": "MetaTokenaddCollector",
              "schema": [
                {
                  "name": "FunctionName",
                  "kind": "optional",
                  "type": "string",
                  "description": "The Function to be called",
                  "example": "addCollector",
                  "default": "addCollector"
                },
                {
                  "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/addCollectorRequest",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "success",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "customType": "addCollectorResponse",
            "schema": [
              {
                "name": "FunctionData",
                "kind": "optional",
                "type": "object",
                "example": "{\"StatusCode\":0,\"Meta\":{\"$ref\":\"#/components/schemas/MetaResponse\"}}",
                "schema": [
                  {
                    "name": "StatusCode",
                    "kind": "optional",
                    "type": "integer",
                    "description": "The status code of the function.",
                    "example": 0,
                    "default": 0
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/addCollectorResponse",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url 'http://1.1.1.1/addCollector?config=%22{%5Cn%20%20%5C%22account_id_to_collector_address%5C%22%3A%20{%5Cn%20%20%20%20%5C%221%5C%22%3A%20%5C%220xF1722F2c8Bab975C321321E2942E0dCb951B9C4F%5C%22%5Cn%20%20}%2C%5Cn%20%20%5C%22network_symbol_to_network_limits%5C%22%3A%20{%5Cn%20%20%20%20%5C%22ETH%5C%22%3A%20{%5Cn%20%20%20%20%20%20%5C%22symbol%5C%22%3A%20%5C%22ETH%5C%22%2C%5Cn%20%20%20%20%20%20%5C%22limits%5C%22%3A%20[%5Cn%20%20%20%20%20%20%20%20{%5Cn%20%20%20%20%20%20%20%20%20%20%5C%22max_total_fee%5C%22%3A%2010000000000000000000%2C%5Cn%20%20%20%20%20%20%20%20%20%20%5C%22max_priority_fee%5C%22%3A%201000000000000%5Cn%20%20%20%20%20%20%20%20}%5Cn%20%20%20%20%20%20]%5Cn%20%20%20%20}%5Cn%20%20}%2C%5Cn%20%20%5C%22currency_symbol_to_currency_limits%5C%22%3A%20{%5Cn%20%20%20%20%5C%22ETH%5C%22%3A%20{%5Cn%20%20%20%20%20%20%5C%22symbol%5C%22%3A%20%5C%22ETH%5C%22%2C%5Cn%20%20%20%20%20%20%5C%22limits%5C%22%3A%20[%5Cn%20%20%20%20%20%20%20%20{%5Cn%20%20%20%20%20%20%20%20%20%20%5C%22fee_ratio%5C%22%3A%201%2C%5Cn%20%20%20%20%20%20%20%20%20%20%5C%22fee_cap%5C%22%3A%20132000000854001%5Cn%20%20%20%20%20%20%20%20}%5Cn%20%20%20%20%20%20]%5Cn%20%20%20%20}%5Cn%20%20}%5Cn}%5Cn%22' \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data-raw '{\n     \"FunctionData\": {\n     \"Config\": {\n     \"Accounts\": {\n     \"1\": {\n     \"CollectorAddress\": \"0xF1722F2c8Bab975C321321E2942E0dCb951B9C4F\"\n     }\n     },\n     \"CollectorId\": \"1\",\n     \"CreationTime\": 10,\n     \"CreatorUserId\": \"bob@gk8.io\",\n     \"Limits\": {\n     \"Currencies\": {\n     \"ETH\": {\n     \"FeeCap\": \"132000000854001\",\n     \"FeeRatio\": \"1\"\n     }\n     },\n     \"Networks\": {\n     \"ETH\": {\n     \"MaxTotalFee\": \"10000000000000000000\"\n     }\n     }\n     },\n     \"Name\": \"myCollector\"\n     }\n     },\n     \"Meta\": {\n     \"FunctionName\": \"addCollector\",\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      \"Config\": {\n         \"Accounts\": {\n            \"1\": {\n               \"CollectorAddress\": \"0xF1722F2c8Bab975C321321E2942E0dCb951B9C4F\"\n            }\n         },\n         \"CollectorId\": \"1\",\n         \"CreationTime\": 10,\n         \"CreatorUserId\": \"bob@gk8.io\",\n         \"Limits\": {\n            \"Currencies\": {\n               \"ETH\": {\n                  \"FeeCap\": \"132000000854001\",\n                  \"FeeRatio\": \"1\"\n               }\n            },\n            \"Networks\": {\n               \"ETH\": {\n                  \"MaxTotalFee\": \"10000000000000000000\"\n               }\n            }\n         },\n         \"Name\": \"myCollector\"\n      }\n   },\n   \"Meta\": {\n      \"FunctionName\": \"addCollector\",\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/addCollector?config=\\\"{\\\\n  \\\\\\\"account_id_to_collector_address\\\\\\\": {\\\\n    \\\\\\\"1\\\\\\\": \\\\\\\"0xF1722F2c8Bab975C321321E2942E0dCb951B9C4F\\\\\\\"\\\\n  },\\\\n  \\\\\\\"network_symbol_to_network_limits\\\\\\\": {\\\\n    \\\\\\\"ETH\\\\\\\": {\\\\n      \\\\\\\"symbol\\\\\\\": \\\\\\\"ETH\\\\\\\",\\\\n      \\\\\\\"limits\\\\\\\": [\\\\n        {\\\\n          \\\\\\\"max_total_fee\\\\\\\": 10000000000000000000,\\\\n          \\\\\\\"max_priority_fee\\\\\\\": 1000000000000\\\\n        }\\\\n      ]\\\\n    }\\\\n  },\\\\n  \\\\\\\"currency_symbol_to_currency_limits\\\\\\\": {\\\\n    \\\\\\\"ETH\\\\\\\": {\\\\n      \\\\\\\"symbol\\\\\\\": \\\\\\\"ETH\\\\\\\",\\\\n      \\\\\\\"limits\\\\\\\": [\\\\n        {\\\\n          \\\\\\\"fee_ratio\\\\\\\": 1,\\\\n          \\\\\\\"fee_cap\\\\\\\": 132000000854001\\\\n        }\\\\n      ]\\\\n    }\\\\n  }\\\\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/addCollector?config=\\\"{\\n  \\\\\"account_id_to_collector_address\\\\\": {\\n    \\\\\"1\\\\\": \\\\\"0xF1722F2c8Bab975C321321E2942E0dCb951B9C4F\\\\\"\\n  },\\n  \\\\\"network_symbol_to_network_limits\\\\\": {\\n    \\\\\"ETH\\\\\": {\\n      \\\\\"symbol\\\\\": \\\\\"ETH\\\\\",\\n      \\\\\"limits\\\\\": [\\n        {\\n          \\\\\"max_total_fee\\\\\": 10000000000000000000,\\n          \\\\\"max_priority_fee\\\\\": 1000000000000\\n        }\\n      ]\\n    }\\n  },\\n  \\\\\"currency_symbol_to_currency_limits\\\\\": {\\n    \\\\\"ETH\\\\\": {\\n      \\\\\"symbol\\\\\": \\\\\"ETH\\\\\",\\n      \\\\\"limits\\\\\": [\\n        {\\n          \\\\\"fee_ratio\\\\\": 1,\\n          \\\\\"fee_cap\\\\\": 132000000854001\\n        }\\n      ]\\n    }\\n  }\\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      \"Config\": {\n         \"Accounts\": {\n            \"1\": {\n               \"CollectorAddress\": \"0xF1722F2c8Bab975C321321E2942E0dCb951B9C4F\"\n            }\n         },\n         \"CollectorId\": \"1\",\n         \"CreationTime\": 10,\n         \"CreatorUserId\": \"bob@gk8.io\",\n         \"Limits\": {\n            \"Currencies\": {\n               \"ETH\": {\n                  \"FeeCap\": \"132000000854001\",\n                  \"FeeRatio\": \"1\"\n               }\n            },\n            \"Networks\": {\n               \"ETH\": {\n                  \"MaxTotalFee\": \"10000000000000000000\"\n               }\n            }\n         },\n         \"Name\": \"myCollector\"\n      }\n   },\n   \"Meta\": {\n      \"FunctionName\": \"addCollector\",\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/addCollector?config=\\\"{\\\\n  \\\\\\\"account_id_to_collector_address\\\\\\\": {\\\\n    \\\\\\\"1\\\\\\\": \\\\\\\"0xF1722F2c8Bab975C321321E2942E0dCb951B9C4F\\\\\\\"\\\\n  },\\\\n  \\\\\\\"network_symbol_to_network_limits\\\\\\\": {\\\\n    \\\\\\\"ETH\\\\\\\": {\\\\n      \\\\\\\"symbol\\\\\\\": \\\\\\\"ETH\\\\\\\",\\\\n      \\\\\\\"limits\\\\\\\": [\\\\n        {\\\\n          \\\\\\\"max_total_fee\\\\\\\": 10000000000000000000,\\\\n          \\\\\\\"max_priority_fee\\\\\\\": 1000000000000\\\\n        }\\\\n      ]\\\\n    }\\\\n  },\\\\n  \\\\\\\"currency_symbol_to_currency_limits\\\\\\\": {\\\\n    \\\\\\\"ETH\\\\\\\": {\\\\n      \\\\\\\"symbol\\\\\\\": \\\\\\\"ETH\\\\\\\",\\\\n      \\\\\\\"limits\\\\\\\": [\\\\n        {\\\\n          \\\\\\\"fee_ratio\\\\\\\": 1,\\\\n          \\\\\\\"fee_cap\\\\\\\": 132000000854001\\\\n        }\\\\n      ]\\\\n    }\\\\n  }\\\\n}\\\\n\\\"\"\n\npayload = json.dumps({\n   \"FunctionData\": {\n      \"Config\": {\n         \"Accounts\": {\n            \"1\": {\n               \"CollectorAddress\": \"0xF1722F2c8Bab975C321321E2942E0dCb951B9C4F\"\n            }\n         },\n         \"CollectorId\": \"1\",\n         \"CreationTime\": 10,\n         \"CreatorUserId\": \"bob@gk8.io\",\n         \"Limits\": {\n            \"Currencies\": {\n               \"ETH\": {\n                  \"FeeCap\": \"132000000854001\",\n                  \"FeeRatio\": \"1\"\n               }\n            },\n            \"Networks\": {\n               \"ETH\": {\n                  \"MaxTotalFee\": \"10000000000000000000\"\n               }\n            }\n         },\n         \"Name\": \"myCollector\"\n      }\n   },\n   \"Meta\": {\n      \"FunctionName\": \"addCollector\",\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}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "id": "xeZLyaokLU1yxhRNup1Ec",
      "type": "paragraph",
      "children": [
        {
          "text": "#IMPORTANT - can not be executed on Swagger UI",
          "id": "opIT4PBCnrjG0PZQ2Ux5D"
        }
      ]
    },
    {
      "id": "6Xim-x5ZulYtCQoyG8n22",
      "type": "paragraph",
      "children": [
        {
          "text": "Calling this request can be used for adding a new collector to MPC",
          "id": "-Qc8kRFMM_HLGjsU2BOH6"
        }
      ]
    },
    {
      "id": "3DHq9b3-jsSUPyJwiPq_3",
      "type": "bulleted-list",
      "children": [
        {
          "id": "08paqNR9hIpPmKHq-mG3Y",
          "type": "list-item",
          "children": [
            {
              "id": "DHFceCP8G7-TVFvzSZmq5",
              "type": "list-item-child",
              "children": [
                {
                  "text": "return - json with results and status code",
                  "id": "_xuvv97FJPilDcCkpsTZu"
                }
              ]
            }
          ]
        },
        {
          "id": "3Of9WA9vLhJ4Nf5dhz2BG",
          "type": "list-item",
          "children": [
            {
              "id": "vfHzWxIXI-lE0SEJcojl6",
              "type": "list-item-child",
              "children": [
                {
                  "text": "Possible status codes:",
                  "id": "naSP1RBRv72VCF6hU1ePV"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": "CywTynRCTwlh7B3K4oppH",
      "type": "paragraph",
      "children": [
        {
          "text": "OK = 0,",
          "id": "feSq2NHbXFfWnt-QJefnO"
        }
      ]
    },
    {
      "id": "nFSepVVooPOdqqOn2No-C",
      "type": "paragraph",
      "children": [
        {
          "text": "ACCOUNT_EXISTS = 1,",
          "id": "_yHXNU4NVxI_7Ee1VADG3"
        }
      ]
    },
    {
      "id": "laeUzGcyeWKqYekMZNDX6",
      "type": "paragraph",
      "children": [
        {
          "text": "IS_ALREADY_RUNNING = 2,",
          "id": "qDoAvdC3dmixMHr3qM01H"
        }
      ]
    },
    {
      "id": "QvCmnGCu1nXweVuJj1l85",
      "type": "paragraph",
      "children": [
        {
          "text": "NOT_EXISTS = 3,",
          "id": "sjMTp7V9fpKrn1xx4nwtr"
        }
      ]
    },
    {
      "id": "ZNgQx7qu0mkIZxLugBg_Q",
      "type": "paragraph",
      "children": [
        {
          "text": "PERMISSION_DENIED = 4,",
          "id": "VbWcnPrZrEQe5Pe7WtT8Y"
        }
      ]
    },
    {
      "id": "JBfmJG7pp1n1aG-2r6ijD",
      "type": "paragraph",
      "children": [
        {
          "text": "BAD_REQUEST = 400,",
          "id": "9A1PvRvn-_mi3SgSpKvQa"
        }
      ]
    },
    {
      "id": "9Qg1LDVsVLMAMAD053T9g",
      "type": "paragraph",
      "children": [
        {
          "text": "TECHNICAL_ERROR = 500",
          "id": "UUU6fOxY0Wm2lz3_QWPBG"
        }
      ]
    }
  ]
}