メインコンテンツへスキップ
POST
/
2
/
lists
リストを作成する
curl --request POST \
  --url https://api.x.com/2/lists \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "private": false
}
'
{
  "errors": [
    {
      "title": "<string>",
      "type": "<string>",
      "detail": "<string>",
      "status": 123
    }
  ]
}

承認

Authorization
string
header
必須

The access token received from the authorization server in the OAuth 2.0 flow.

ボディ

application/json
name
string
必須
Required string length: 1 - 25
description
string
Maximum string length: 100
private
boolean
デフォルト:false

レスポンス

リクエストは成功しました。

data
object

X のリストは、キュレーションされたアカウントのグループです。

errors
object[]
Minimum array length: 1

IETF RFC 7807 (https://tools.ietf.org/html/rfc7807) で定義された HTTP Problem Details オブジェクト。