PATCH
/v1/organizations/{organizationId}/postgres/{postgresId}/stateThis endpoint is in beta. API contract is stable, and no breaking changes are expected in the future.
Initiate a process for a Postgres service:
- restart: Initiates a service restart
- promote: Promotes a read replica to primary
- switchover: Switch a primary over to a standby
Path parameters
Request bodyJSON
Response
JSON
200
Successful response
400
The request cannot be processed due to a client error. Please verify your request parameters and try again.
500
An internal server error has occurred. If this issue persists, please contact ClickHouse Cloud support for assistance.