# Rotate connection credentials (/docs/rest-api/endpoints/connections/post-connections-by-id-rotate) > 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. Generates new credentials for the connection with the given ID. Revocation of the previous credentials is best-effort. Location: REST API > Endpoints > Connections > Rotate connection credentials ## Related pages - [Create connection](https://www.prisma.io/docs/rest-api/endpoints/connections/post-connections): Creates a new connection for the specified database. - [Delete connection](https://www.prisma.io/docs/rest-api/endpoints/connections/delete-connections-by-id): Deletes the connection with the given ID. - [Get connection](https://www.prisma.io/docs/rest-api/endpoints/connections/get-connections-by-id): Returns the connection with the given ID. - [List connections](https://www.prisma.io/docs/rest-api/endpoints/connections/get-connections): Returns all connections the actor has access to, with optional database filter.