# Update database (/docs/rest-api/endpoints/databases/patch-databases-by-database-id) > For the complete Prisma documentation index, see [llms.txt](https://www.prisma.io/docs/llms.txt). A markdown version of any docs page is available by appending `.md` to its URL. Updates the database with the given ID. `logicalId` cannot be combined with `branchId` or `branchGitName` in one request; move the database first, then set its `logicalId`. Location: REST API > Endpoints > Databases > Update database ## Related pages - [Create database](https://www.prisma.io/docs/rest-api/endpoints/databases/post-databases): Creates a new database in the specified project. `logicalId` cannot be combined with `branchGitName`; pass `branchId` instead. - [Create database](https://www.prisma.io/docs/rest-api/endpoints/databases/post-projects-by-project-id-databases): Creates a new database for the given project. - [Delete database](https://www.prisma.io/docs/rest-api/endpoints/databases/delete-databases-by-database-id): Deletes the database with the given ID. - [Get database](https://www.prisma.io/docs/rest-api/endpoints/databases/get-databases-by-database-id): Returns the database with the given ID. - [Get list of databases](https://www.prisma.io/docs/rest-api/endpoints/databases/get-projects-by-project-id-databases): Returns databases for the given project.