API REFERENCE
User-list
Upload user-list
1 min
{ "name" "upload user list", "method" "post", "url" "https //api sandbox klavi ai/monitor/v1/monitors/{id}/user list", "description" "upload the list of monitored users ", "tab" "examples", "examples" { "languages" \[ { "id" "cu7wsoftebwhp 9e0yobh", "language" "curl", "code" "curl location globoff request post 'https //api sandbox klavi ai/monitor/v1/monitors/{id}/user list' \\\\\n header 'authorization string' \\\\\n form \\"file=@data csv;type=text/csv\\" ", "customlabel" "" }, { "id" "h9b7xs97jdxkuwqkrthbs", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'put',\n 'url' 'https //api sandbox klavi ai/monitor/v1/monitors/{id}/user list',\n 'headers' {\n 'authorization' 'string'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "phxobocm89pdpnh8ompn9", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"authorization\\", \\"string\\");\n\nvar requestoptions = {\n method 'put',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //api sandbox klavi ai/monitor/v1/monitors/{id}/user list\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "jwsaina7pf6xohoew nhc", "language" "python", "code" "import requests\n\nurl = \\"https //api sandbox klavi ai/monitor/v1/monitors/{id}/user list\\"\n\npayload = {}\nheaders = {\n 'authorization' 'string'\n}\n\nresponse = requests request(\\"put\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "qn10br8tlq5bxfnicvlba", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api sandbox klavi ai/monitor/v1/monitors/{id}/user list\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http put new(url)\nrequest\[\\"authorization\\"] = \\"string\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "cu7wsoftebwhp 9e0yobh" }, "results" { "languages" \[ { "id" "68mdpfyu8yvui kgjpdih", "language" "200", "customlabel" "", "code" "{\n \\"messange\\" \\"ok\\"\n}" } ], "selectedlanguageid" "68mdpfyu8yvui kgjpdih" }, "request" { "pathparameters" \[ { "name" "id", "kind" "required", "type" "string", "description" "id of the monitor", "" "id of the monitor" } ], "queryparameters" \[], "headerparameters" \[ { "name" "authorization", "kind" "required", "type" "string", "description" "bearer access token, it returned by the /auth", "" "bearer access token, it returned by the /auth" } ], "bodydataparameters" \[], "formdataparameters" \[ { "name" "file", "kind" "optional", "type" "object", "description" "binary data stream", "" "file" } ] }, "currentnewparameter" { "label" "form parameter", "value" "formdataparameters" }, "hastryitout" false } user list file the user list file currently only supports the utf 8 encoded text file format, with each cpf delimiter being a line break or comma