KPI
methods allow you to get a list of portal kpis or information on a specific kpi \<font color="#2166ae">get\</font> /kpi return a list of kpis { "tab" "request", "url" "https //instance name/api/data/v1 0/kpi/", "name" "request example", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "description" "string in \\"token xxxxxx \\" format " } ], "bodydataparameters" \[ { "kind" "optional", "name" "limit", "type" "integer", "description" "the number of results to return per page " }, { "kind" "optional", "name" "offset", "type" "integer", "description" "the initial index from which to return the results " } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "fj3zsbaijz6tuvfi40xny", "code" "{\n \\"count\\" 5,\n \\"next\\"\ null,\n \\"previous\\"\ null,\n \\"results\\" \[\n {\n \\"id\\" 11,\n \\"cid\\" \\"% shelf share linear pet food home shelf\\",\n \\"name\\" \\"% shelf share linear pet food home shelf\\",\n \\"units\\" \\"%\\"\n },\n {\n \\"id\\" 12,\n \\"cid\\" \\"% glass facing share nescafe classic\\",\n \\"name\\" \\"glass facing share nescafe classic\\",\n \\"units\\" \\"%\\"\n },\n {\n \\"id\\" 13,\n \\"cid\\" \\"pu gl 3\\",\n \\"name\\" \\"pu gl 3\\",\n \\"units\\"\ null\n },\n {\n \\"id\\" 14,\n \\"cid\\" \\"pu gl 2\\",\n \\"name\\" \\"pu gl 2\\",\n \\"units\\"\ null\n },\n {\n \\"id\\" 15,\n \\"cid\\" \\"pu gl 1\\",\n \\"name\\" \\"pu gl 1\\",\n \\"units\\"\ null\n }\n ]\n}", "language" "200", "customlabel" "" } ], "selectedlanguageid" "fj3zsbaijz6tuvfi40xny" }, "examples" { "languages" \[ { "id" "dpmodah zaotktusexn5x", "code" "curl –i –x get\n https //test eyrene com/api/data/v1 1/kpi/\n h ‘authorization token 39fbb6e9 fbf9 459a 9e1b 416dbcf51875e’", "language" "curl", "customlabel" "" } ], "selectedlanguageid" "dpmodah zaotktusexn5x" }, "description" "get /kpi", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "autogeneratedanchorslug" "request example", "legacyhash" " ksqdvr1ioy1 yid0pq9u" } response parameters ​ https //help inspector cloud com/en/docs/api/backend/methods/v1/agents/agents list#response definitions count integer the number of kpis next string (uri) \<font color="#2166ae">nullable\</font> next page previous string (uri) \<font color="#2166ae">nullable\</font> previous page results array of objects an array of objects with information about kpi's id integer kpi id cid string \<font color="#2166ae">\<= 255 characters nullable\</font> kpi id in the user system name string \<font color="#2166ae">\[ 1 255 ]\</font> \<font color="#2166ae">characters\</font> kpi name units string \<font color="#2166ae">\<= 255 characters nullable\</font> kpi indicator unit \<font color="#2166ae">get\</font> /kpi/{id} returns information about kpi by id { "tab" "request", "url" "https //instance name/api/data/v1 0/kpi/{id}", "name" "request example", "method" "get", "request" { "pathparameters" \[ { "kind" "required", "name" "id", "type" "string", "description" "kpi id " } ], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "description" "string in \\"token xxxxxx \\" format " } ], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "fj3zsbaijz6tuvfi40xny", "code" "{\n \\"id\\" 11,\n \\"cid\\" \\"% shelf share linear pet food home shelf\\",\n \\"name\\" \\"% shelf share linear pet food home shelf\\",\n \\"units\\" \\"%\\"\n}", "language" "200", "customlabel" "" } ], "selectedlanguageid" "fj3zsbaijz6tuvfi40xny" }, "examples" { "languages" \[ { "id" "dpmodah zaotktusexn5x", "code" "curl –i –x get\n https //test eyrene com/api/data/v1 1/kpi/11/\n h ‘authorization token 39fbb6e9 fbf9 459a 9e1b 416dbcf51875e’", "language" "curl", "customlabel" "" } ], "selectedlanguageid" "dpmodah zaotktusexn5x" }, "description" "get /kpi/{id}", "currentnewparameter" { "label" "path parameter", "value" "pathparameters" }, "autogeneratedanchorslug" "request example 1", "legacyhash" "bivvib dkmtz 9nb mm t" } response parameters id integer kpi id cid string \<font color="#2166ae">\<= 255 characters nullable\</font> kpi id in the user system name string \<font color="#2166ae">\[ 1 255 ]\</font> \<font color="#2166ae">characters\</font> kpi name units string \<font color="#2166ae">\<= 255 characters nullable\</font> kpi indicator unit