コンテンツにスキップ

/v0/lists (POST)

POST
/v0/lists
curl --request POST \
--url http://localhost:3000/v0/lists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "title": "Pulsate developers", "public": false }'
Media type application/json
object
title
required

List title (1-100 characters)

string
Example
Pulsate developers
public

If true, list is public

boolean
Example
false

OK

Media type application/json
object
id
required

List ID

string
title
required

List title

string
public

If true, list is public

boolean
Example
{
"id": "38477395",
"title": "Pulsate developers",
"public": false
}

Bad request

Media type application/json

List title too long

object
error
required

List title is too long

string
Allowed values: TITLE_TOO_LONG
Example
{
"error": "TITLE_TOO_LONG"
}

Internal error

Media type application/json

Internal server error

object
error
required

Internal server error

string
Allowed values: INTERNAL_ERROR
Example
{
"error": "INTERNAL_ERROR"
}