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
/score/policies
Get all okr design score policies
Parameters
NameTypeDescription
gtmhub-accountId
*
stringSpecifies the ID of the Quantive Results account.
expected in header, sample value:
5be26318e5274a0007f17f61
Expected response codes
200policiesResponse
400bad request
401unauthorized
402payment required
403forbidden
500internal 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"
    }
]