create

fun Lists.create(    name: String,     mode: ListVisibilityMode = ListVisibilityMode.Default,     description: String? = null,     vararg options: Option): JsonObjectApiAction<TwitterList>

Creates a new list for the authenticated user. Note that you can create up to 1000 lists per account.

Twitter API reference

Receiver

Lists endpoint instance.

Return

JsonObjectApiAction for TwitterList model.

Parameters

name

The name for the list. A list's name must start with a letter and can consist only of 25 or fewer letters, numbers, "-", or "_" characters.

mode

Whether your list is public or private. Values can be public or private . If no mode is specified the list will be public.

description

The description to give the list.

options

Optional. Custom parameters of this request.