Score Policies endpoints
The Scorepolicies group exposes a single endpoint, which enables you to get a list of all elements (policies) that build up the OKR design score. The response contains the definition and ranges for each policy.
Get all okr design score policies
Parameters
Name | Type | Description |
---|---|---|
gtmhub-accountId * | string | Specifies the ID of the Quantive Results account. expected in header, sample value: 5be26318e5274a0007f17f61 |
Expected response codes
200 | policiesResponse |
400 | bad request |
401 | unauthorized |
402 | payment required |
403 | forbidden |
500 | internal server error |
curl -X GET 'https://app.quantive.com/results/api/v1/score/policies' \ -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/score/policies", "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/score/policies"
requests.get(url, headers = headers)
[
{
"applicableTo": "string value",
"criteria": {
"penalty": 2,
"range": {
"from": 2,
"to": 2
}
},
"fieldName": "string value",
"fieldValueType": "string value",
"name": "string value"
}
]
Oops! Looks like there are no API calls of that type for this Endpoint