Lists
A List in Swish belongs to a Profile and contains Items.
Returns all lists as paginated response
Bad Request
Unauthorized
Forbidden
Not Found
GET /api/2025-04/lists HTTP/1.1
Host: swish.app
Authorization: Bearer JWT
Accept: */*
{
"data": [
{
"id": "67a61d5561e4f9de302c02a1",
"name": "My List",
"createdAt": "2025-01-01T10:00:00.000Z",
"updatedAt": "2025-01-01T10:00:00.000Z"
}
]
}
The name of the list
My List
The list has been successfully created.
Bad Request
Unauthorized
Forbidden
Not Found
POST /api/2025-04/lists HTTP/1.1
Host: swish.app
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"name": "My List"
}
{
"data": {
"id": "67a61d5561e4f9de302c02a1",
"name": "My List",
"createdAt": "2025-01-01T10:00:00.000Z",
"updatedAt": "2025-01-01T10:00:00.000Z"
}
}
The ID of the list
67a61d5561e4f9de302c02a1
The sort order of the items in the list
recently_saved
Possible values: The list has been successfully retrieved.
Bad Request
Unauthorized
Forbidden
Not Found
GET /api/2025-04/lists/{listId} HTTP/1.1
Host: swish.app
Authorization: Bearer JWT
Accept: */*
{
"data": {
"id": "67a61d5561e4f9de302c02a1",
"name": "My List",
"createdAt": "2025-01-01T10:00:00.000Z",
"updatedAt": "2025-01-01T10:00:00.000Z",
"items": [
{
"id": "67a61d5561e4f9de302c02a1",
"productId": 123,
"variantId": 456,
"quantity": 1,
"createdAt": "2025-01-01T10:00:00.000Z",
"updatedAt": "2025-01-01T10:00:00.000Z"
}
]
}
}
The ID of the list
67a61d5561e4f9de302c02a1
The name of the list
My List
The list has been successfully updated.
Bad Request
Unauthorized
Forbidden
Not Found
PATCH /api/2025-04/lists/{listId} HTTP/1.1
Host: swish.app
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"name": "My List"
}
{
"data": {
"id": "67a61d5561e4f9de302c02a1",
"name": "My List",
"createdAt": "2025-01-01T10:00:00.000Z",
"updatedAt": "2025-01-01T10:00:00.000Z"
}
}
The ID of the list
67a61d5561e4f9de302c02a1
The list has been successfully deleted.
No content
Bad Request
Unauthorized
Forbidden
Not Found
DELETE /api/2025-04/lists/{listId} HTTP/1.1
Host: swish.app
Authorization: Bearer JWT
Accept: */*
No content
The ID of the list
67a61d5561e4f9de302c02a1
The list of item IDs to reorder
["507f1f77bcf86cd799439011","507f1f77bcf86cd799439022"]
The list items have been successfully reordered.
Bad Request
Unauthorized
Forbidden
Not Found
PUT /api/2025-04/lists/{listId}/items/order HTTP/1.1
Host: swish.app
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"itemIds": [
"507f1f77bcf86cd799439011",
"507f1f77bcf86cd799439022"
]
}
{
"data": {
"id": "67a61d5561e4f9de302c02a1",
"name": "My List",
"createdAt": "2025-01-01T10:00:00.000Z",
"updatedAt": "2025-01-01T10:00:00.000Z"
}
}
Last updated