Get the quotas of a project for a task type

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://api-docs.kitsu.cloud/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Kitsu API MCP server": {
    "url": "https://api-docs.kitsu.cloud/mcp"
  }
}

Close
GET /data/projects/{project_id}/quotas/{task_type_id}

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.

Path parameters

  • project_id string(uuid) Required

    Unique identifier of the project

  • task_type_id string(uuid) Required

    Unique identifier of the task type

Query parameters

  • count_mode string

    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, or done. Default value is weighted.

  • studio_id string(uuid)

    Get only the persons of this studio

Responses

  • 200 application/json

    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.

    Hide response attribute Show response attribute object
    • * object Additional properties
      Hide * attributes Show * attributes object
      • count number

        Shots counted. In weighted modes a shot is split over the days it was worked on, so counts are fractions rounded to 2 decimals.

      • frames integer
  • 400

    count_mode is not valid

  • 403

    You do not have access to this project, or you are a client

GET /data/projects/{project_id}/quotas/{task_type_id}
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())
Response examples (200)
{
  "additionalProperty1": {
    "count": 42,
    "frames": 1200
  },
  "additionalProperty2": {
    "count": 42,
    "frames": 1200
  }
}