# Upsert Custodian Accounts `UpsertCustodianAccounts` `POST /api/transactionportfolios/{scope}/{code}/custodianaccounts` - [OpenAPI fragment](https://www.lusid.com/docs/api/lusid/endpoints/transaction-portfolios/UpsertCustodianAccounts.json) - [Rendered page](https://www.lusid.com/docs/api/lusid/endpoints/transaction-portfolios/UpsertCustodianAccounts) Create or update Custodian Accounts in the Transaction Portfolios. A Custodian Account will be updated if it already exists and created if it does not. The batch limit per request is 2,000. ## Referenced schemas - [CustodianAccountRequest](https://www.lusid.com/docs/api/lusid/schemas/CustodianAccountRequest.txt) - [CustodianAccountsUpsertResponse](https://www.lusid.com/docs/api/lusid/schemas/CustodianAccountsUpsertResponse.txt) [< Transaction Portfolios](https://www.lusid.com/docs/api/lusid/endpoints/transaction-portfolios/llms.txt)