/v0/lists (POST)
POST
/v0/lists
const url = 'http://localhost:3000/v0/lists';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"title":"Pulsate developers","public":false}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/v0/lists \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "title": "Pulsate developers", "public": false }'Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ” Media type application/json
object
title
required
List title (1-100 characters)
string
Example
Pulsate developers public
If true, list is public
boolean
Example
falseResponses
Section titled “ Responses ”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
Example
{ "error": "TITLE_TOO_LONG"}Internal error
Media type application/json
Internal server error
object
error
required
Internal server error
string
Example
{ "error": "INTERNAL_ERROR"}