मुख्य सामग्री पर जाएं
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 ऑब्जेक्ट।