コンテンツにスキップ

/v0/lists/:id (PATCH)

PATCH
/v0/lists/:id
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 }'
id
required
string
Media type application/json
object
title

List title

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
}

List title too long

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"
}

List not found

Media type application/json
object
error
required

List not found

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

Internal error

Media type application/json

Internal server error

object
error
required

Internal server error

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