Get the quota statistics of a person in a project. A quota counts the shots that the person ended. A manager or a supervisor of the project can read the quotas of all the persons. Other users can read their own quotas only. 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
GET
/data/projects/{project_id}/quotas/persons/{person_id}
curl
curl -X GET "http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/quotas/persons/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/persons/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())
Response examples (200)
{
"additionalProperty1": {
"count": 15,
"frames": 360
},
"additionalProperty2": {
"count": 15,
"frames": 360
}
}