# Depository (single) A depository represents the place where instruments are held — a custody account at a bank or broker. Owned by exactly one legal entity. Linked to one or more accounts (a many-to-many relationship); transactions on those accounts can update positions held in the depository. ## Endpoints GET /v2/depositories/:id Fetch one depository. PATCH /v2/depositories/:id Update mutable attributes (`name`, `externalIdentifier`). DELETE /v2/depositories/:id Delete the depository. Rejected if any holding or transaction history still references it. ## Path params id (required) — Depository identifier (Mongo ObjectID). ## Attributes (`type: depository`) name (string, optional) — Display name. externalIdentifier (string, required) — Bank/custodian-assigned identifier. ## Relationships legalEntity — Owner (read-only here). accounts — Linked accounts (read-only here).