Get the shots with the tasks of each shot. Filter with project_id or episode_id. Use episode_id=all to get all the episodes. A client gets the tasks without the studio fields. If you are not an administrator, you must give project_id. A vendor gets only the entities of their tasks, without the hidden metadata columns. The response can have an ETag. Send it in If-None-Match to get a 304 response when the data did not change.
Query parameters
-
Get only the entities of this project
-
Encode shots and tasks as positional value arrays (halves the payload). Field names are given by the shot_fields and task_fields entries of the response, map values by name, never by hardcoded position.
Default value is
false. -
Stream the response as NDJSON (one header line, then one shot per line) instead of a single JSON document, to keep server memory flat on large productions.
Default value is
false. -
Get only the entities of this episode. Use all to get the entities of all the episodes.
-
With any value, get only the shots that have a task assigned to you.
curl -X GET "http://api.example.com/data/shots/with-tasks?project_id=a24a6ea4-ce75-4665-a070-57453082c25" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
import requests
url = "http://api.example.com/data/shots/with-tasks"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
params = {
"project_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())
[
{
"id": "a24a6ea4-ce75-4665-a070-57453082c250",
"name": "SH010",
"project_id": "b24a6ea4-ce75-4665-a070-57453082c250",
"tasks": [
{
"id": "c24a6ea4-ce75-4665-a070-57453082c250",
"name": "SH010 Animation"
}
]
}
]