> ## Documentation Index
> Fetch the complete documentation index at: https://x-preview-mintlify-5e62557c.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage Lists

> X API v2 の Manage Lists エンドポイントを利用して、認証済みユーザーの代理で X の List を作成、更新、削除し、アカウントをキュレーションしたタイムラインに整理します。

export const Button = ({href, children}) => {
  return <div className="not-prose">
    <a href={href}>
      <button className="x-btn">
        <span>{children}</span>
        <svg width="3" height="24" viewBox="0 -9 3 24" class="h-6 rotate-0 overflow-visible"><path d="M0 0L3 3L0 6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg>
      </button>
    </a>
  </div>;
};

Manage Lists エンドポイントを使うと、認証済みユーザーの代理で List の作成、更新、削除ができます。

## 概要

<CardGroup cols={2}>
  <Card title="作成" icon="plus">
    新しい List を作成
  </Card>

  <Card title="更新" icon="pen">
    List の名前と説明を更新
  </Card>

  <Card title="削除" icon="trash">
    List を削除
  </Card>
</CardGroup>

***

## エンドポイント

| Method | Endpoint                                   | Description  |
| :----- | :----------------------------------------- | :----------- |
| POST   | [`/2/lists`](/x-api/lists/create-list)     | 新しい List を作成 |
| PUT    | [`/2/lists/:id`](/x-api/lists/update-list) | List を更新     |
| DELETE | [`/2/lists/:id`](/x-api/lists/delete-list) | List を削除     |

***

## 例: List を作成

```bash theme={null}
curl -X POST "https://api.x.com/2/lists" \
  -H "Authorization: Bearer $USER_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Tech News",
    "description": "My favorite tech journalists",
    "private": false
  }'
```

## レスポンス例

```json theme={null}
{
  "data": {
    "id": "1234567890",
    "name": "Tech News"
  }
}
```

***

## はじめに

<Note>
  **前提条件**

  * 承認済みの [developer account](https://developer.x.com/en/portal/petition/essential/basic-info)
  * Developer Console 内の [Project と App](/resources/fundamentals/developer-apps)
  * [OAuth 2.0 PKCE](/resources/fundamentals/authentication#oauth-2-0-authorization-code-flow-with-pkce-2) 経由のユーザー Access Token
</Note>

<CardGroup cols={2}>
  <Card title="クイックスタート" icon="https://mintcdn.com/x-preview-mintlify-5e62557c/7ox7QZkMlDBhUtvj/icons/xds/icon-rocket.svg?fit=max&auto=format&n=7ox7QZkMlDBhUtvj&q=85&s=b6c3ee24b3b5aff4ba4a87805d56fdc9" href="/x-api/lists/manage-lists/quickstart" width="24" height="24" data-path="icons/xds/icon-rocket.svg">
    最初の List を作成
  </Card>

  <Card title="連携ガイド" icon="https://mintcdn.com/x-preview-mintlify-5e62557c/QVCcrJRuVU5c6Fli/icons/xds/icon-book.svg?fit=max&auto=format&n=QVCcrJRuVU5c6Fli&q=85&s=730ef6392554051da0ff5f79a1698c62" href="/x-api/lists/manage-lists/integrate" width="24" height="24" data-path="icons/xds/icon-book.svg">
    主要な概念とベストプラクティス
  </Card>

  <Card title="List members" icon="https://mintcdn.com/x-preview-mintlify-5e62557c/dxXIRy5tzOESXfjK/icons/xds/icon-people.svg?fit=max&auto=format&n=dxXIRy5tzOESXfjK&q=85&s=3df3f471186c3b149f8bf206d86587e3" href="/x-api/lists/list-members/introduction" width="24" height="24" data-path="icons/xds/icon-people.svg">
    メンバーの追加・削除
  </Card>

  <Card title="API リファレンス" icon="https://mintcdn.com/x-preview-mintlify-5e62557c/NnGYBQFO1PDkJQK7/icons/xds/icon-code.svg?fit=max&auto=format&n=NnGYBQFO1PDkJQK7&q=85&s=e6a5208c5ad4cc59a4a97fed7db5ed00" href="/x-api/lists/create-list" width="24" height="24" data-path="icons/xds/icon-code.svg">
    エンドポイントの詳細ドキュメント
  </Card>
</CardGroup>
