Get the quota statistics of each person of a project for a task type. A quota counts the shots that a person ended. The response also has a total. Clients cannot use this route.
Query parameters
-
How to count the shots: weighted, weighteddone, feedback or done. The default value is weighted. The weighted modes give each shot the part of its work time that is in the period. The other modes count each shot on its end date. The feedback modes end a shot at its first feedback. The done modes end a shot when it is done.
Values are
weighted,weigtheddone,feedback, ordone. Default value isweighted. -
Get only the persons of this studio
Responses
-
Quotas statistics for shots, keyed by person id, with a total entry. The total counts each task once. In raw modes, and in weighted modes for a task without time spent, the entry of each assignee counts the whole task, so the entries of a task with several assignees add up to more than the total. In weighted modes, a task with time spent is shared out between the people who logged time on it.
-
count_mode is not valid
-
You do not have access to this project, or you are a client
curl -X GET "http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/quotas/a24a6ea4-ce75-4665-a070-57453082c25?count_mode=weighted&studio_id=a24a6ea4-ce75-4665-a070-57453082c25" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
import requests
url = "http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/quotas/a24a6ea4-ce75-4665-a070-57453082c25"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
params = {
"count_mode": "weighted",
"studio_id": "a24a6ea4-ce75-4665-a070-57453082c25"
}
payload = None
response = requests.get(
url,
headers=headers,
params=params,
json=payload
)
response.raise_for_status()
if response.content:
print(response.json())
{
"additionalProperty1": {
"count": 42,
"frames": 1200
},
"additionalProperty2": {
"count": 42,
"frames": 1200
}
}