메인 콘텐츠로 건너뛰기
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 객체