Yandex Cloud
КейсыДокументация
ПрезентацияСвязаться с намиНачать бесплатно
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Сделано на Gravity UI
Проект Яндекса
© 2026 ООО «Яндекс.Облако»
Yandex DataLens
  • Галерея в DataLens
    • Как пользоваться Public API
    • Версионирование
    • История изменений
      • Overview
        • Overview
        • Check favorites
        • List favorites
  • Аудитные логи Audit Trails

В этой статье:

  • Request
  • Headers
  • Body
  • Responses
  • 200 OK
  • Body
  • FavoriteMark
  1. DataLens Public API
  2. DataLens API (англ.)
  3. Favorites
  4. List favorites
Статья создана
Yandex Cloud
Открыть в Markdown
  • Request
    • Headers
    • Body
  • Responses
  • 200 OK
    • Body
    • FavoriteMark

List favorites

Returns the favorite marks of the current user, newest first.

RequestRequest

POST

https://api.datalens.tech/rpc/listFavorites

HeadersHeaders

Name

Description

x-dl-api-version

Type: string

API version header.

Const: 3

Example: 3

BodyBody

application/json
{
  "entityTypes": [
    "entry"
  ],
  "pageSize": 1,
  "pageToken": "example"
}

Name

Description

entityTypes

Type: string[]

Entity types to return. All types are returned if the field is omitted.

Min items: 1

Example
[
  "entry"
]

pageSize

Type: integer

Maximum number of favorites per page. Defaults to 200.

Min value: 1

Max value: 200

pageToken

Type: string

Token of the page to return, taken from the previous response.

Example: example

ResponsesResponses

200 OK200 OK

Response

BodyBody

application/json
{
  "entities": [
    {
      "entityId": "example",
      "entityType": "entry",
      "displayAlias": "example",
      "createdAt": "example"
    }
  ],
  "nextPageToken": "example"
}

Name

Description

entities

Type: FavoriteMark[]

Favorite marks of the current user.

Example
[
  {
    "entityId": "example",
    "entityType": "entry",
    "displayAlias": "example",
    "createdAt": "example"
  }
]

nextPageToken

Type: string

Token of the next page. Absent on the last page.

Example: example

FavoriteMarkFavoriteMark

Name

Description

createdAt

Type: string

Date and time when the entity was marked as a favorite.

Example: example

displayAlias

Type: string | null

Custom name the user gave to the favorite, or null if there is none.

Example: example

entityId

Type: string

ID of the entity marked as a favorite.

Example: example

entityType

Type: string

Type of the entity marked as a favorite.

Enum: entry, workbook, collection

Example
{
  "entityId": "example",
  "entityType": "entry",
  "displayAlias": "example",
  "createdAt": "example"
}

Была ли статья полезна?

Предыдущая
Check favorites
Следующая
Overview
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Сделано на Gravity UI
Проект Яндекса
© 2026 ООО «Яндекс.Облако»