/v0/lists/:id (PATCH)
PATCH
/v0/lists/:id
const url = 'http://localhost:3000/v0/lists/:id';const options = { method: 'PATCH', 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 PATCH \ --url http://localhost:3000/v0/lists/:id \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "title": "Pulsate developers", "public": false }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Request Body
Section titled “Request Body ” Media type application/json
object
title
List title
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}List title too long
Media type application/json
List title too long
object
error
required
List title is too long
string
Example
{ "error": "TITLE_TOO_LONG"}List not found
Media type application/json
object
error
required
List not found
string
Example
{ "error": "LIST_NOT_FOUND"}Internal error
Media type application/json
Internal server error
object
error
required
Internal server error
string
Example
{ "error": "INTERNAL_ERROR"}