KPI Groups endpoints
The Kpigroups endpoints enable you to retrieve, create, update, or delete KPI Groups. KPI groups combine several KPIs in one place for better organization. For more information about KPI Groups check our Use KPI groups help article.
Loads all kpis groups using filter, sort and projection expressions coming from the request body
Parameters
Name | Type | Description |
---|---|---|
gtmhub-accountId * | string | The unique identifier (id) of the Quantive Results account. expected in header, sample value: 5be26318e5274a0007f17f61 |
Expected response codes
200 | kpiGroupsWithTotalCount |
400 | bad request |
401 | unauthorized |
403 | forbidden |
500 | internal server error |
curl -X GET 'https://app.quantive.com/results/api/v1/kpis/groups' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer {token}' \
-H 'gtmhub-accountId: 5be26318e5274a0007f17f61' \
var settings = { "url": "https://app.quantive.com/results/api/v1/kpis/groups", "method": "GET", "timeout": 0, "headers": { "Content-Type": "application/json", "Accept": "application/json", "Authorization": "Bearer {token}",
"gtmhub-accountId": "5be26318e5274a0007f17f61",
}
}; $.ajax(settings).done(function (response) { console.log(response); });
NOTE: You must install the module requests.
In a terminal window do: pip install requests
import requests, json
headers = { "Authorization" : "Bearer {token}", "gtmhub-accountId" : "{accountId}", "Content-Type" : "application/json" };
url = "https://app.quantive.com/results/api/v1/kpis/groups"
requests.get(url, headers = headers)
{
"count": 2,
"items": [
{
"accountId": "string value",
"createdById": "string value",
"dateCreated": "string value",
"dateUpdated": "string value",
"favorite": false,
"id": "string value",
"modifiedById": "string value",
"name": "string value"
}
],
"totalCount": 2
}
Gets an existing KPI group by its unique identifier (id).
Parameters
Name | Type | Description |
---|---|---|
gtmhub-accountId * | string | The unique identifier (id) of the Quantive Results account. expected in header, sample value: 5be26318e5274a0007f17f61 |
groupId * | string | The unique identifier of the KPI group. expected in path
|
Expected response codes
200 | kpiGroup |
400 | bad request |
401 | unauthorized |
403 | forbidden |
404 | not found |
500 | internal server error |
curl -X GET 'https://app.quantive.com/results/api/v1/kpis/groups/{groupId}' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer {token}' \
-H 'gtmhub-accountId: 5be26318e5274a0007f17f61' \
var settings = { "url": "https://app.quantive.com/results/api/v1/kpis/groups/{groupId}", "method": "GET", "timeout": 0, "headers": { "Content-Type": "application/json", "Accept": "application/json", "Authorization": "Bearer {token}",
"gtmhub-accountId": "5be26318e5274a0007f17f61",
}
}; $.ajax(settings).done(function (response) { console.log(response); });
NOTE: You must install the module requests.
In a terminal window do: pip install requests
import requests, json
headers = { "Authorization" : "Bearer {token}", "gtmhub-accountId" : "{accountId}", "Content-Type" : "application/json" };
url = "https://app.quantive.com/results/api/v1/kpis/groups/{groupId}"
requests.get(url, headers = headers)
{
"accountId": "string value",
"createdById": "string value",
"dateCreated": "string value",
"dateUpdated": "string value",
"favorite": false,
"id": "string value",
"modifiedById": "string value",
"name": "string value"
}
Creates a new KPI group.
Parameters
Name | Type | Description |
---|---|---|
gtmhub-accountId * | string | The unique identifier (id) of the Quantive Results account. expected in header, sample value: 5be26318e5274a0007f17f61 |
createKpiGroupRequest * | object | The object representing the KPI Group to be created. expected in body, sample value: { "name": "string value" } |
Expected response codes
201 | kpiGroup |
400 | bad request |
401 | unauthorized |
403 | forbidden |
500 | internal server error |
curl -X POST 'https://app.quantive.com/results/api/v1/kpis/groups' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer {token}' \
-H 'gtmhub-accountId: 5be26318e5274a0007f17f61' \
-d '{"name":"string value"}'
var body ={ "name": "string value" };
var settings = { "url": "https://app.quantive.com/results/api/v1/kpis/groups", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json", "Accept": "application/json", "Authorization": "Bearer {token}",
"gtmhub-accountId": "5be26318e5274a0007f17f61",
},
"data": body
}; $.ajax(settings).done(function (response) { console.log(response); });
NOTE: You must install the module requests.
In a terminal window do: pip install requests
import requests, json
headers = { "Authorization" : "Bearer {token}", "gtmhub-accountId" : "{accountId}", "Content-Type" : "application/json" };
url = "https://app.quantive.com/results/api/v1/kpis/groups"
body = { "name": "string value" };
requests.post(url, data=json.dumps(body), headers = headers)
{
"accountId": "string value",
"createdById": "string value",
"dateCreated": "string value",
"dateUpdated": "string value",
"favorite": false,
"id": "string value",
"modifiedById": "string value",
"name": "string value"
}
Add a KPI group to favorites of the current user.
Parameters
Name | Type | Description |
---|
Expected response codes
200 | ok |
400 | bad request |
401 | unauthorized |
404 | not found |
500 | internal server error |
curl -X PUT 'https://app.quantive.com/results/api/v1/kpis/groups/{groupId}/favorite' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer {token}' \
var settings = { "url": "https://app.quantive.com/results/api/v1/kpis/groups/{groupId}/favorite", "method": "PUT", "timeout": 0, "headers": { "Content-Type": "application/json", "Accept": "application/json", "Authorization": "Bearer {token}",
}
}; $.ajax(settings).done(function (response) { console.log(response); });
NOTE: You must install the module requests.
In a terminal window do: pip install requests
import requests, json
headers = { "Authorization" : "Bearer {token}", "gtmhub-accountId" : "{accountId}", "Content-Type" : "application/json" };
url = "https://app.quantive.com/results/api/v1/kpis/groups/{groupId}/favorite"
requests.put(url, headers = headers)
Partially updates an existing KPI group.
Parameters
Name | Type | Description |
---|---|---|
gtmhub-accountId * | string | The unique identifier (id) of the Quantive Results account. expected in header, sample value: 5be26318e5274a0007f17f61 |
groupId * | string | The unique identifier of the KPI group. expected in path
|
updateKpiGroupRequest * | object | This object represents the attributes of the KPI Group to be updated. expected in body, sample value: { "name": "string value" } |
Expected response codes
200 | ok |
400 | bad request |
401 | unauthorized |
403 | forbidden |
404 | not found |
500 | internal server error |
curl -X PATCH 'https://app.quantive.com/results/api/v1/kpis/groups/{groupId}' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer {token}' \
-H 'gtmhub-accountId: 5be26318e5274a0007f17f61' \
-d '{"name":"string value"}'
var body ={ "name": "string value" };
var settings = { "url": "https://app.quantive.com/results/api/v1/kpis/groups/{groupId}", "method": "PATCH", "timeout": 0, "headers": { "Content-Type": "application/json", "Accept": "application/json", "Authorization": "Bearer {token}",
"gtmhub-accountId": "5be26318e5274a0007f17f61",
},
"data": body
}; $.ajax(settings).done(function (response) { console.log(response); });
NOTE: You must install the module requests.
In a terminal window do: pip install requests
import requests, json
headers = { "Authorization" : "Bearer {token}", "gtmhub-accountId" : "{accountId}", "Content-Type" : "application/json" };
url = "https://app.quantive.com/results/api/v1/kpis/groups/{groupId}"
body = { "name": "string value" };
requests.patch(url, data=json.dumps(body), headers = headers)
Deletes an existing KPI group.
No request object required.
Parameters
Name | Type | Description |
---|---|---|
gtmhub-accountId * | string | The unique identifier (id) of the Quantive Results account. expected in header, sample value: 5be26318e5274a0007f17f61 |
groupId * | string | The unique identifier of the KPI group. expected in path
|
Expected response codes
200 | ok |
400 | bad request |
401 | unauthorized |
403 | forbidden |
404 | not found |
500 | internal server error |
curl -X DELETE 'https://app.quantive.com/results/api/v1/kpis/groups/{groupId}' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer {token}' \
-H 'gtmhub-accountId: 5be26318e5274a0007f17f61' \
var settings = { "url": "https://app.quantive.com/results/api/v1/kpis/groups/{groupId}", "method": "DELETE", "timeout": 0, "headers": { "Content-Type": "application/json", "Accept": "application/json", "Authorization": "Bearer {token}",
"gtmhub-accountId": "5be26318e5274a0007f17f61",
}
}; $.ajax(settings).done(function (response) { console.log(response); });
NOTE: You must install the module requests.
In a terminal window do: pip install requests
import requests, json
headers = { "Authorization" : "Bearer {token}", "gtmhub-accountId" : "{accountId}", "Content-Type" : "application/json" };
url = "https://app.quantive.com/results/api/v1/kpis/groups/{groupId}"
requests.delete(url, headers = headers)
Removes a KPI group from favorites of the current user.
Parameters
Name | Type | Description |
---|
Expected response codes
200 | ok |
400 | bad request |
401 | unauthorized |
404 | not found |
500 | internal server error |
curl -X DELETE 'https://app.quantive.com/results/api/v1/kpis/groups/{groupId}/favorite' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer {token}' \
var settings = { "url": "https://app.quantive.com/results/api/v1/kpis/groups/{groupId}/favorite", "method": "DELETE", "timeout": 0, "headers": { "Content-Type": "application/json", "Accept": "application/json", "Authorization": "Bearer {token}",
}
}; $.ajax(settings).done(function (response) { console.log(response); });
NOTE: You must install the module requests.
In a terminal window do: pip install requests
import requests, json
headers = { "Authorization" : "Bearer {token}", "gtmhub-accountId" : "{accountId}", "Content-Type" : "application/json" };
url = "https://app.quantive.com/results/api/v1/kpis/groups/{groupId}/favorite"
requests.delete(url, headers = headers)
Removes an existing KPI from an existing group.
No request object required.
Parameters
Name | Type | Description |
---|---|---|
gtmhub-accountId * | string | The unique identifier (id) of the Quantive Results account. expected in header, sample value: 5be26318e5274a0007f17f61 |
kpiId * | string | The unique identifier (id) of the KPI. expected in path
|
groupId * | string | The unique identifier of the KPI group. expected in path
|
Expected response codes
200 | ok |
400 | bad request |
401 | unauthorized |
403 | forbidden |
404 | not found |
500 | internal server error |
curl -X DELETE 'https://app.quantive.com/results/api/v1/kpis/{kpiId}/groups/{groupId}' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer {token}' \
-H 'gtmhub-accountId: 5be26318e5274a0007f17f61' \
var settings = { "url": "https://app.quantive.com/results/api/v1/kpis/{kpiId}/groups/{groupId}", "method": "DELETE", "timeout": 0, "headers": { "Content-Type": "application/json", "Accept": "application/json", "Authorization": "Bearer {token}",
"gtmhub-accountId": "5be26318e5274a0007f17f61",
}
}; $.ajax(settings).done(function (response) { console.log(response); });
NOTE: You must install the module requests.
In a terminal window do: pip install requests
import requests, json
headers = { "Authorization" : "Bearer {token}", "gtmhub-accountId" : "{accountId}", "Content-Type" : "application/json" };
url = "https://app.quantive.com/results/api/v1/kpis/{kpiId}/groups/{groupId}"
requests.delete(url, headers = headers)
Oops! Looks like there are no API calls of that type for this Endpoint