Lists

A List in Swish belongs to a Profile and contains Items.

get
Authorizations
HTTPRequired
Responses
200

Returns all lists as paginated response

application/json
get
/lists
post
Authorizations
HTTPRequired
Body
namestringRequired

The name of the list

Example: My List
Responses
post
/lists
get
Authorizations
HTTPRequired
Path parameters
listIdstringRequired

The ID of the list

Example: 67a61d5561e4f9de302c02a1
Query parameters
sortstring · enumOptional

The sort order of the items in the list

Default: recently_savedPossible values:
Responses
200

The list has been successfully retrieved.

application/json
get
/lists/{listId}
patch
Authorizations
HTTPRequired
Path parameters
listIdstringRequired

The ID of the list

Example: 67a61d5561e4f9de302c02a1
Body
namestringRequired

The name of the list

Example: My List
Responses
200

The list has been successfully updated.

application/json
patch
/lists/{listId}
delete
Authorizations
HTTPRequired
Path parameters
listIdstringRequired

The ID of the list

Example: 67a61d5561e4f9de302c02a1
Responses
delete
/lists/{listId}

No content

put
Authorizations
HTTPRequired
Path parameters
listIdstringRequired

The ID of the list

Example: 67a61d5561e4f9de302c02a1
Body
itemIdsstring[]Required

The list of item IDs to reorder

Example: ["507f1f77bcf86cd799439011","507f1f77bcf86cd799439022"]
Responses
200

The list items have been successfully reordered.

application/json
put
/lists/{listId}/items/order

Last updated