---
title: "List Owned Resources"
method: GET
path: "/teams/{team_id}/owned-resources"
tags: ["teams"]
---

# List Owned Resources

`GET /teams/{team_id}/owned-resources`

Snapshot the rows the caller owns in ``team_id`` for the leave-team UI.

The frontend's :class:`LeaveTeamModal` calls this once before
submitting :func:`leave_team` to render a per-resource picker.
Resource types with zero owned rows are omitted.

Args:
    team_id: Team the caller intends to leave.
    auth: Authenticated user context.

Returns:
    :class:`OwnedResourcesResponse` containing
    ``is_sole_member`` (so the UI can route directly to the
    destructive sole-member-leave flow) and the per-resource
    picker payload.

## Path parameters

- `team_id` string, required

## Response `200`

Successful Response

- OwnedResourcesResponse — Response for ``GET /teams/{team_id}/owned-resources``. Each key in ``owned`` is a stable resource-type identifier (``projects``, ``datasets``, ``training_jobs``, ``model_evaluations``, ``agent_runs``). Resource types with zero owned rows are omitted so the frontend can render an empty-state card directly when ``len(owned) == 0`` (and also includes ``is_sole_member`` so the UI can route to the destructive sole-member-leave flow without a second round-trip).
  - `success` boolean
  - `is_sole_member` boolean, required
  - `owned` object, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/versions/31dfe831e079/schema)
