{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To update a connection pool for a PostgreSQL database cluster, send a PUT request to  `/v2/databases/$DATABASE_ID/pools/$POOL_NAME`.","properties":{"path":{"type":"object","properties":{"database_cluster_uuid":{"type":"string","format":"uuid","examples":["9cc10173-e9ea-4176-9dbc-a4cee4c4ff30"],"description":"A unique identifier for a database cluster."},"pool_name":{"type":"string","examples":["backend-pool"],"description":"The name used to identify the connection pool."}},"required":["database_cluster_uuid","pool_name"],"additionalProperties":false},"body":{"$ref":"#/definitions/connection_pool_update","examples":[{"mode":"transaction","size":10,"db":"defaultdb","user":"doadmin"}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"connection_pool_update":{"type":"object","properties":{"mode":{"type":"string","description":"The PGBouncer transaction mode for the connection pool. The allowed values are session, transaction, and statement.","examples":["transaction"]},"size":{"type":"integer","description":"The desired size of the PGBouncer connection pool. The maximum allowed size is determined by the size of the cluster's primary node. 25 backend server connections are allowed for every 1GB of RAM. Three are reserved for maintenance. For example, a primary node with 1 GB of RAM allows for a maximum of 22 backend server connections while one with 4 GB would allow for 97. Note that these are shared across all connection pools in a cluster.","examples":[10]},"db":{"type":"string","description":"The database for use with the connection pool.","examples":["defaultdb"]},"user":{"type":"string","description":"The name of the user for use with the connection pool. When excluded, all sessions connect to the database as the inbound user.","examples":["doadmin"]}},"required":["mode","size","db"]}}},"name":"Update Connection Pools (PostgreSQL)","id":"digitalocean.databases_update_connectionpool","example":{"path":{"database_cluster_uuid":"9cc10173-e9ea-4176-9dbc-a4cee4c4ff30","pool_name":"backend-pool"},"body":{"mode":"transaction","size":10,"db":"defaultdb"}},"maxRequests":1,"summary":false}}