Create a Collection
Parameters
Optional ID for the new collection. If not provided, one is generated automatically.
Display name for the collection.
Description of the collection’s purpose.
Arbitrary key-value metadata to attach to the collection.
Returns
The ID of the created collection.
List Collections
Returns
List of collection summary objects, including ownership, your permission level, and precomputed counts.
Get a Collection
Parameters
ID of the collection to retrieve.
Returns
Collection details with ownership, your permission level, and precomputed counts.
The metadata blob is no longer included on this response. Use
get_collection_metadata to retrieve it.Errors
HTTPError (404)— Collection not found
Update a Collection
Parameters
ID of the collection to update.
New name. If
None, the name is left unchanged.New description. If
None, the description is left unchanged.Delete Agent Runs
Remove specific agent runs from a collection.Parameters
ID of the collection.
List of agent run IDs to delete.
Returns
Number of agent runs deleted.
Errors
ValueError—agent_run_idsis emptyHTTPError (404)— Collection not found

