/projects/{project_id}/endpoints/{endpoint_id}Update compute endpointUpdates the specified compute endpoint.
An endpoint_id has an ep- prefix. A branch_id has a br- prefix. For more information about compute endpoints, see Manage computes.
If the returned list of operations is not empty, the compute endpoint is not ready to use. The client must wait for the last operation to finish before using the compute endpoint. If the compute endpoint was idle before the update, it becomes active for a short period of time, and the control plane suspends it again after the update.
Parameters
project_idstringpathrequiredThe Neon project ID
endpoint_idstringpathrequiredThe endpoint ID
Request body
requiredapplication/json
endpointobjectrequiredParameters for the compute endpoint update.
Show child attributes
autoscaling_limit_max_cunumberautoscaling_limit_min_cunumberbranch_idstringDeprecated. The destination branch ID; must not have an existing read-write endpoint.
disabledbooleanWhether to restrict connections to the compute endpoint. Enabling this option schedules a suspend compute operation. A disabled compute endpoint cannot be enabled by a connection or console action. However, the compute endpoint is periodically enabled by check_availability operations.
namestringOptional name of the compute endpoint
passwordless_accessbooleanNOT YET IMPLEMENTED. Whether to permit passwordless access to the compute endpoint.
pooler_enabledbooleanDeprecated. To enable connection pooling, append `-pooler` to the endpoint ID in the connection string. See [How to use connection pooling](https://neon.com/docs/connect/connection-pooling#how-to-use-connection-pooling)
pooler_modestringDeprecated. The connection pooler mode. Neon supports PgBouncer in `transaction` mode only. Removal scheduled for June 20, 2026.
provisionerstringsettingsobjectA collection of settings for a compute endpoint
Show child attributes
pg_settingsobjectA raw representation of Postgres settings
pgbouncer_settingsobjectDeprecated. A raw representation of PgBouncer settings. Removal scheduled for June 20, 2026.
preload_librariesobjectThe shared libraries to preload into the project's compute instances.
Show child attributes
enabled_librariesarray of stringNames of shared preload libraries to enable for the project.
Show child attributes
use_defaultsbooleanWhen true, the project's preload libraries include the platform default set in addition to any libraries listed in `enabled_libraries`.
suspend_timeout_secondsinteger · int64Duration of inactivity in seconds after which the compute endpoint is automatically suspended. The value `0` means use the default value. The value `-1` means never suspend. The default value is `300` seconds (5 minutes). The minimum value is `60` seconds (1 minute). The maximum value is `604800` seconds (1 week). For more information, see [Scale to zero configuration](https://neon.com/docs/manage/endpoints#scale-to-zero-configuration).
{
"endpoint": {
"suspend_timeout_seconds": 300
}
}Responses
allOf · 2 options
endpointobjectrequiredShow child attributes
autoscaling_limit_max_cunumberrequiredautoscaling_limit_min_cunumberrequiredbranch_idstringrequiredThe ID of the branch this compute endpoint belongs to.
compute_release_versionstringAttached compute's release version number.
created_atstring · date-timerequiredA timestamp indicating when the compute endpoint was created
creation_sourcestringrequiredThe compute endpoint creation source
current_statestringrequiredLifecycle state of the compute endpoint. `init`: being initialized. `active`: running and accepting connections. `idle`: suspended (scaled to zero).
disabledbooleanrequiredWhether to restrict connections to the compute endpoint. Enabling this option schedules a suspend compute operation. A disabled compute endpoint cannot be enabled by a connection or console action.
hoststringrequiredThe hostname of the compute endpoint. This is the hostname specified when connecting to a Neon database.
idstringrequiredThe compute endpoint ID. Compute endpoint IDs have an `ep-` prefix. For example: `ep-little-smoke-851426`
last_activestring · date-timeA timestamp indicating when the compute endpoint was last active
namestringOptional name of the compute endpoint
passwordless_accessbooleanrequiredWhether to permit passwordless access to the compute endpoint
pending_statestringLifecycle state of the compute endpoint. `init`: being initialized. `active`: running and accepting connections. `idle`: suspended (scaled to zero).
pooler_enabledbooleanrequiredDeprecated. To use connection pooling, append `-pooler` to the endpoint ID in the connection string.
pooler_modestringrequiredDeprecated. The connection pooler mode. Neon supports PgBouncer in `transaction` mode only. Removal scheduled for June 20, 2026.
project_idstringrequiredThe ID of the project this compute endpoint belongs to.
provisionerstringrequiredproxy_hoststringrequiredDeprecated. Use the `host` property instead.
region_idstringrequiredCloud region where the resource's Postgres compute and storage reside (for example, `aws-us-east-1`). Valid values are returned by `GET /regions`.
A collection of settings for a compute endpoint
started_atstring · date-timeA timestamp indicating when the compute endpoint was last started
suspend_timeout_secondsinteger · int64requiredDuration of inactivity in seconds after which the compute endpoint is automatically suspended. The value `0` means use the default value. The value `-1` means never suspend. The default value is `300` seconds (5 minutes). The minimum value is `60` seconds (1 minute). The maximum value is `604800` seconds (1 week). For more information, see [Scale to zero configuration](https://neon.com/docs/manage/endpoints#scale-to-zero-configuration).
suspended_atstring · date-timeA timestamp indicating when the compute endpoint was last suspended
typestringrequiredCompute endpoint type. `read_write`: the primary read-write endpoint (one per branch). `read_only`: a read replica endpoint (multiple allowed per branch).
updated_atstring · date-timerequiredA timestamp indicating when the compute endpoint was last updated
operationsarray of objectrequiredShow child attributes
Show array items
An asynchronous action Neon performs on your resources (for example, starting a compute or creating a branch). Fields such as `action`, `status`, and `total_duration_ms` describe the operation and its progress.
actionstringrequiredThe action performed by the operation
branch_idstringThe ID of the branch this operation ran on.
created_atstring · date-timerequiredA timestamp indicating when the operation was created
endpoint_idstringThe ID of the compute endpoint this operation ran on.
errorstringHuman-readable message describing why the operation failed.
failures_countinteger · int32requiredThe number of times the operation failed
idstring · uuidrequiredThe operation ID
project_idstringrequiredThe ID of the project this operation ran on.
retry_atstring · date-timeA timestamp indicating when the operation was last retried
statusstringrequiredLifecycle state of the operation. `scheduling`: queued, not yet started. `running`: actively executing. `finished`: completed successfully. `failed`: ended with a failure. `error`: ended with a terminal error. `cancelling`: cancellation requested but not yet complete. `cancelled`: stopped before completion. `skipped`: bypassed without executing.
total_duration_msinteger · int32requiredThe total duration of the operation in milliseconds
updated_atstring · date-timerequiredA timestamp indicating when the operation status was last updated
{
"endpoint": {
"autoscaling_limit_max_cu": 1,
"autoscaling_limit_min_cu": 1,
"branch_id": "br-raspy-hill-832856",
"created_at": "2022-12-03T15:37:07Z",
"creation_source": "console",
"current_state": "idle",
"disabled": false,
"host": "ep-steep-bush-777093.us-east-2.aws.neon.tech",
"id": "ep-steep-bush-777093",
"last_active": "2022-12-03T15:00:00Z",
"passwordless_access": true,
"pooler_enabled": false,
"pooler_mode": "transaction",
"project_id": "shiny-wind-028834",
"provisioner": "k8s-pod",
"proxy_host": "us-east-2.aws.neon.tech",
"region_id": "aws-us-east-2",
"settings": {
"pg_settings": {}
},
"suspend_timeout_seconds": 10800,
"type": "read_write",
"updated_at": "2022-12-03T15:49:10Z"
},
"operations": [
{
"action": "apply_config",
"branch_id": "br-proud-paper-090813",
"created_at": "2022-12-03T15:51:06Z",
"endpoint_id": "ep-shrill-thunder-454069",
"failures_count": 0,
"id": "3fc98ab8-f191-47b8-a427-5eb668ccc5b9",
"project_id": "bitter-meadow-966132",
"status": "running",
"total_duration_ms": 100,
"updated_at": "2022-12-03T15:51:06Z"
},
{
"action": "suspend_compute",
"branch_id": "br-proud-paper-090813",
"created_at": "2022-12-03T15:51:06Z",
"endpoint_id": "ep-shrill-thunder-454069",
"failures_count": 0,
"id": "9ffda74b-a582-4cff-b0f0-aaa8d14b8e6a",
"project_id": "bitter-meadow-966132",
"status": "scheduling",
"total_duration_ms": 100,
"updated_at": "2022-12-03T15:51:06Z"
}
]
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}