---
title: "List of Team Components Paginated"
method: GET
path: "/teams/{team_id}/components_paginated/"
tags: ["Team Components"]
---

# List of Team Components Paginated

`GET /teams/{team_id}/components_paginated/`

## Request

- Base URL: `http://api.cannoli.app/api/v1`
- URL: `http://api.cannoli.app/api/v1/teams/{team_id}/components_paginated/`
- Auth: none declared

### Ordering
The file list is order by `created_at` descending. You can override the ordering through the
`ordering` query parameter with the following fields:
* `created_at`
* `updated_at`
* `name`

Fields are ordered as ascending by default and you can change it to descending by adding `-` before
the field, eg `-created_at`

Here are a few examples to update the file list ordering.

Order by creation date, ascending

    /api/v1/teams/{team_id}/components_paginated/?ordering=created_at

Order by creation date, descending

    /api/v1/teams/{team_id}/components_paginated/?ordering=-created_at

You can also order by multiple fields separating by comma

    /api/v1/teams/{team_id}/components_paginated/?ordering=-created_at,name

### Pagination
This endpoint is paged to 30 results per page. You can override the page size with  the `page_size`
query parameter. You can also override the page number with the `page` query parameter.

    /api/v1/teams/{team_id}/components_paginated/?page_size=20&page=2

## Query parameters

- `ordering` string
- `page` integer
- `page_size` integer

## Response `200`

OK

- object
  - `count` integer, required
  - `next` string, uri, nullable
  - `previous` string, uri, nullable
  - `results` TeamComponent[], required
    - `id` integer
    - `name` string, required
    - `content` object, required
    - `virtual_mj_head` string
    - `preview` string, uri
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `file` integer, required
    - `css` string, nullable

---

[API](https://skmtc.dev/cannoli/apis/cannoli-backend-api.md) - [All operations](https://skmtc.dev/cannoli/apis/cannoli-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cannoli/apis/cannoli-backend-api/revisions/d27aef14fd7a?raw)
