Repository navigation
Locations
Locations lets you record where your cards and decks are physically kept, such as a binder, a box, a display case, or a type you define yourself. Each card entry and each deck can be assigned to one location. The Locations page shows how many cards and decks each location holds, and the Collection can be filtered by location.
Locations is off by default and must be enabled by an admin before it appears in the UI. See Feature Toggles below.
- Click Locations in the sidebar.
- Click Add New Location.
- Enter a Name, choose a Type, and optionally add Notes.
- Click Add Location.
Each location appears as a tile (grid view) or a row (list view) showing its type, its card and deck counts, and its notes. Use the pencil icon to rename it, change its type, or edit its notes, and the trash icon to delete it.
| Field | Description |
|---|---|
| Name | Up to 100 characters. Must be unique among your own locations (ignoring case). |
| Type | One of the built-in types below, or one of your custom types |
| Notes | Optional, up to 2000 characters. Useful for shelf positions, page numbers, and similar details. |
| Built-in type | Typical use |
|---|---|
| Binder | Binders and trade binders |
| Box | Storage boxes and long boxes |
| Display Case | Display and showcase cases |
| Bag | Bags and travel cases |
| Deck | A physical deck box. This is a place for cards, and is separate from decks in the Deck Builder. |
The card count is the total number of copies in the location, not the number of collection entries.
If none of the built-in types fit, choose Custom... in the Type dropdown, enter a Custom Type Name (up to 50 characters), and save the location. The new type is created along with the location and can be reused for other locations.
Your custom types are listed above your locations as Custom types:. Click the x on a type to delete it. A type can only be deleted once no location uses it. Change those locations to another type first. A custom type can't reuse the name of a built-in type or of another of your custom types.
Every form that adds or edits a card has a Location dropdown. Choose No location to leave a card unassigned.
- Add Card (Collection page) - pick the location when adding the card.
- Card Search - pick the location when adding the card. The selection is kept between adds, so a run of cards can go into the same place.
- Edit Card (pencil icon on a card) - change or clear the card's location.
A collection entry is one stack of identical copies: the same printing, foil, condition, language, and location. The same printing can be kept in several locations, and each location holds its own entry.
To split a stack across locations, lower the quantity on the existing entry, then add the remaining copies with Add Card and the other location.
If an edit makes an entry identical to another one, for example moving copies into a location that already holds the same printing, foil, condition, and language, the two entries are merged into one. The quantities are added together. The remaining entry keeps its own notes, favorite, Showroom, and loan settings, and the moved entry's photos are kept for any side the remaining entry has no photo of.
- New Deck and Import Deck dialogs have a Location dropdown.
- On a deck's page, the Location dropdown under the deck name changes it immediately.
- The Decks list shows each deck's location under its card count.
With Locations enabled, the Collection page gains:
- A Location column, shown by default in place of Notes on desktop. Either column can be toggled from the column menu.
- A Location filter. Choose a location to show only its cards, or All to show everything.
Locations are never shown on your public Showroom unless you choose to. On your Showroom edit page, every shared card and deck that has a location shows a Show location checkbox. When checked, the location name appears under that card or deck on the public Showroom and on the public deck view.
Publishing a whole location (for example an entire binder) to the Showroom is not currently supported.
Deleting a location never deletes cards or decks. Its cards and decks are left with no location, and their Show location settings are cleared. If a card left without a location is identical to a card you already have with no location, the two entries are merged as described above.
- Trades - cards received in a trade arrive with no location and join your unassigned copies of that card. See Trading.
- Collection imports - imported cards arrive with no location.
- Deck imports - the whole deck can be given a location in the Import Deck dialog.
-
Collection exports - CSV, JSON, and SQL exports include a
locationcolumn with the location's name, added as the last column. See Export Guide.
An admin can enable or disable Locations from Admin > Settings > Feature Toggles. It is disabled by default.
When disabled:
- The Locations nav link, location dropdowns, the Location column and filter, and Showroom location labels are hidden for all users.
- The Locations page redirects to
/collection. - The Locations API returns
403, as does any request that sets a card's or deck's location. - All locations, custom types, and assignments are kept and return when Locations is re-enabled.
Locations are stored in the main database, in the locations and custom_location_types tables, with location_id and showroom_show_location columns on collection entries and decks. These are added by migration d5e6f7a8b9c0, which runs automatically when a v1.12.0 or later container starts.
Back up your database before updating. A migrated database can't be used by an older image, so returning to an earlier version means restoring that backup. See Updating & Migrating.
| Method | Path | Description |
|---|---|---|
GET |
/locations/status |
Whether Locations is enabled. Available while Locations is off. |
GET |
/locations |
Your locations, with card and deck counts |
POST |
/locations |
Create a location |
PATCH |
/locations/{id} |
Update a location's name, type, or notes |
DELETE |
/locations/{id} |
Delete a location. Its cards and decks are kept with no location. |
GET |
/locations/types |
Your custom location types, with how many locations use each |
POST |
/locations/types |
Create a custom location type |
DELETE |
/locations/types/{id} |
Delete a custom location type that no location uses |
The kind field of a location is one of binder, box, display_case, bag, deck, or custom. A custom location also needs custom_type_id, the ID of one of your custom types.
Cards and decks take a location_id:
| Method | Path | Location fields |
|---|---|---|
POST |
/collection |
location_id |
PATCH |
/collection/{entry_id} |
location_id (null clears it, leaving it out keeps it), showroom_show_location
|
POST |
/decks and /decks/import
|
location_id |
PATCH |
/decks/{deck_id} |
location_id (null clears it, leaving it out keeps it), showroom_show_location
|
All endpoints except /locations/status require authentication. Duplicate names and deleting a custom type that is in use return 409.
When scripting against the Docker image, prefix these paths with /api, for example POST /api/locations. A PATCH /collection/{entry_id} that merges two entries returns the remaining entry, which may have a different ID. See API Reference for authentication.