POST
/2/users/{id}/pinned_lists
curl \
-X POST https://api.twitter.com/2/users/2244994945/pinned_lists \
-H "Authorization: Oauth $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"list_id":"1146654567674912769"}'
Request example
{
"list_id": "1146654567674912769"
}
Request examples
{
"list_id": "1146654567674912769"
}
Response examples (200)
{
"data": {
"pinned": true
},
"errors": [
{
"type": "string",
"title": "string",
"detail": "string",
"status": 42
}
]
}
Response examples (200)
{
"data": {
"pinned": true
},
"errors": [
{
"type": "string",
"title": "string",
"detail": "string",
"status": 42
}
]
}
Response examples (default)
{
"code": 42,
"message": "string"
}
Response examples (default)
{
"code": 42,
"message": "string"
}