2020-01-01 22:37:59 +01:00
|
|
|
---
|
|
|
|
title: List
|
|
|
|
description: Represents a list of some users that the authenticated user follows.
|
|
|
|
menu:
|
|
|
|
docs:
|
|
|
|
parent: entities
|
2022-11-20 07:34:38 +01:00
|
|
|
aliases: [
|
|
|
|
"/entities/list",
|
|
|
|
"/entities/List",
|
|
|
|
"/api/entities/list",
|
|
|
|
"/api/entities/List",
|
|
|
|
]
|
2020-01-01 22:37:59 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
```json
|
|
|
|
{
|
|
|
|
"id": "12249",
|
|
|
|
"title": "Friends"
|
|
|
|
}
|
2020-01-01 22:37:59 +01:00
|
|
|
```
|
|
|
|
|
2022-12-14 22:55:30 +01:00
|
|
|
## Attributes
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
### `id` {#id}
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
**Description:** The internal database ID of the list.\
|
2022-11-20 07:34:38 +01:00
|
|
|
**Type:** String (cast from an integer, but not guaranteed to be a number)\
|
2020-12-27 07:03:55 +01:00
|
|
|
**Version history:**\
|
|
|
|
2.1.0 - added
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
### `title` {#title}
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2020-01-12 14:11:56 +01:00
|
|
|
**Description:** The user-defined title of the list.\
|
|
|
|
**Type:** String\
|
2020-12-27 07:03:55 +01:00
|
|
|
**Version history:**\
|
|
|
|
2.1.0 - added
|
|
|
|
|
|
|
|
### `replies_policy` {#replies_policy}
|
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
**Description:** Which replies should be shown in the list.\
|
2020-12-27 07:03:55 +01:00
|
|
|
**Type:** String (Enumerable oneOf)\
|
|
|
|
`followed` = Show replies to any followed user\
|
|
|
|
`list` = Show replies to members of the list\
|
|
|
|
`none` = Show replies to no one\
|
|
|
|
**Version history:**\
|
|
|
|
3.3.0 - added
|
2020-01-01 22:37:59 +01:00
|
|
|
|
|
|
|
## See also
|
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
{{< page-relref ref="methods/accounts#lists" caption="GET /api/v1/accounts/:id/lists" >}}
|
|
|
|
|
|
|
|
{{< page-relref ref="methods/lists" caption="lists API methods" >}}
|
2020-01-01 22:37:59 +01:00
|
|
|
|
2022-11-20 07:34:38 +01:00
|
|
|
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/serializers/rest/list_serializer.rb" caption="app/serializers/rest/list_serializer.rb" >}}
|
2020-01-01 22:37:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
|