Remove address Whitelist
2 min
📝 description remove address from the authenticated sub account whitelist { "name" "/api/transaction/v1/whitelist ", "method" "delete", "url" "https //cloudbreak cambyopro com/api/transaction/v1/whitelist ", "description" "remove addresses from whitelist", "tab" "examples", "examples" { "languages" \[ { "id" "ix8u7l5exsvcawjyfmwqw", "language" "json", "code" "{\n \\"id\\" \\"wa abcdefgh\\",\n \\"address\\" \\"tc2pnxrkrxukd1irxcnzf3r7u3uo7vyxvf\\"\n}" }, { "id" "jju6yr8r0b7cens snvt6", "language" "curl", "code" "curl request delete \\\\\n url https //cloudbreak cambyopro com/api/transaction/v1/whitelist \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n header 'authorization string' \\\\\n data '{\n \\"id\\" \\"string\\",\n \\"address\\" \\"string\\"\n }'", "customlabel" "" }, { "id" "pmvvl0q160a dprubqqxn", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'delete',\n 'url' 'https //cloudbreak cambyopro com/api/transaction/v1/whitelist ',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json',\n 'authorization' 'string'\n },\n body json stringify({\n \\"id\\" \\"string\\",\n \\"address\\" \\"string\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "oe2x1eqfdygpb ld7h2qt", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\nmyheaders append(\\"authorization\\", \\"string\\");\n\nvar raw = json stringify({\n \\"id\\" \\"string\\",\n \\"address\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'delete',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //cloudbreak cambyopro com/api/transaction/v1/whitelist \\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "zr15t 4drguvvtacy5rhp", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //cloudbreak cambyopro com/api/transaction/v1/whitelist \\"\n\npayload = json dumps({\n \\"id\\" \\"string\\",\n \\"address\\" \\"string\\"\n})\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json',\n 'authorization' 'string'\n}\n\nresponse = requests request(\\"delete\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "dpmtec1uufp6a7ifplhzz", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //cloudbreak cambyopro com/api/transaction/v1/whitelist \\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http delete new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest\[\\"authorization\\"] = \\"string\\"\nrequest body = json dump({\n \\"id\\" \\"string\\",\n \\"address\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "ix8u7l5exsvcawjyfmwqw" }, "results" { "languages" \[ { "id" "8awq k4b2jwsr3cwel30t", "language" "200", "code" "{\n \\"success\\" true,\n \\"message\\" \\"address removed successfully \\"\n}", "customlabel" "" }, { "id" "7ttudy3swewmv91skboht", "language" "401", "code" "{\n \\"success\\" false,\n \\"message\\" \\"missing bearer token\\"\n}", "customlabel" "" }, { "id" "sr g jg4kub2g xkpkr 9", "language" "404", "code" "{\n \\"success\\" false,\n \\"message\\" \\"address not found for this subaccount \\"\n}" }, { "id" "dp35c gz0nuzxedi3ypsk", "language" "422", "code" "{\n \\"success\\" false,\n \\"message\\" \\"the given data was invalid \\"\n}" } ], "selectedlanguageid" "dp35c gz0nuzxedi3ypsk" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "name" "authorization", "kind" "required", "type" "string", "description" "bearer {{accesstoken}}", "" "bearer {{accesstoken}}" } ], "bodydataparameters" \[ { "name" "id", "kind" "required", "type" "string", "description" "unique identifier of the created wallet", "" "unique identifier of the created wallet" }, { "name" "address", "kind" "required", "type" "string", "description" "wallet address on the blockchain", "" "wallet address on the blockchain" } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" true, "autogeneratedanchorslug" "apitransactionv1whitelist", "legacyhash" "vabnn9kdyglobqscz27uj" } allows removal by id (wallet id) for a specific entry, or by address (removes all instances of that address under the subaccount)