Skip to main content
Version: v0.23.1

Create a new list

POST 

https://try.hoarder.app/api/v1/lists

Create a new list

Request

Body

The list to create

    namestringrequired

    Possible values: non-empty and <= 40 characters

    descriptionstring

    Possible values: <= 100 characters

    iconstringrequired
    typestring

    Possible values: [manual, smart]

    Default value: manual
    querystring

    Possible values: non-empty

    parentIdstringnullable

Responses

The created list

Schema
    idstringrequired
    namestringrequired
    descriptionstringnullable
    iconstringrequired
    parentIdstringnullablerequired
    typestring

    Possible values: [manual, smart]

    Default value: manual
    querystringnullable

Authorization: http

name: bearerAuthtype: httpscheme: bearerbearerFormat: JWT
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://try.hoarder.app/api/v1/lists");
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 \"type\": \"manual\",\n \"query\": \"string\",\n \"parentId\": \"string\"\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.hoarder.app/api/v1
Auth
Body
{
  "name": "string",
  "description": "string",
  "icon": "string",
  "type": "manual",
  "query": "string",
  "parentId": "string"
}