Skip to main content
Version: v0.25.0

Update a list

PATCH 

https://try.karakeep.app/api/v1/lists/:listId

Update list by its id

Request

Path Parameters

    listId ListIdrequired

Body

The data to update. Only the fields you want to update need to be provided.

    namestring

    Possible values: non-empty and <= 40 characters

    descriptionstringnullable

    Possible values: <= 100 characters

    iconstring
    parentIdstringnullable
    querystring

    Possible values: non-empty

    publicboolean

Responses

The updated list

Schema
    idstringrequired
    namestringrequired
    descriptionstringnullable
    iconstringrequired
    parentIdstringnullablerequired
    typestring

    Possible values: [manual, smart]

    Default value: manual
    querystringnullable
    publicbooleanrequired

Authorization: http

name: bearerAuthtype: httpscheme: bearerbearerFormat: JWT
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Patch, "https://try.karakeep.app/api/v1/lists/:listId");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"name\": \"string\",\n \"description\": \"string\",\n \"icon\": \"string\",\n \"parentId\": \"string\",\n \"query\": \"string\",\n \"public\": true\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://try.karakeep.app/api/v1
Auth
Parameters
— pathrequired
Body
{
  "name": "string",
  "description": "string",
  "icon": "string",
  "parentId": "string",
  "query": "string",
  "public": true
}
ResponseClear

Click the Send API Request button above and see the response here!