# Sources Lists

Schema: [ListSources](schemas.md#listsources)

## POST /lists/sources — Add a new list

Body: `ListSources` (required). A source with `bid` set to 0 is excluded.

Responses: `201` created, `400` errors, `422` unprocessable entity.

## GET /lists/sources — List all lists

`200`: array of `{ id, name }`. `404`: none found.

## GET /lists/sources/{listId} — Find list by ID

`200`: `{ id, name }`. `404`: not found.

## PATCH /lists/sources/{listId} — Update a list

Body: `ListSources` (required). Responses: `400` invalid ID, `404` not found, `405` validation exception.

## DELETE /lists/sources/{listId} — Delete a list

`204` deleted, `404` not found.

## GET /lists/sources/{listId}/sources — Items in the list

Returns the sources in the list. `200` success, `404` not found.
