---
title: "Updates an external load balancer in the project and returns the async operation."
method: PATCH
path: "/projects/{project_id}/networking/load-balancers/{load_balancer_id}"
tags: ["Load Balancers"]
---

# Updates an external load balancer in the project and returns the async operation.

`PATCH /projects/{project_id}/networking/load-balancers/{load_balancer_id}`

This endpoint updates the configuration of an existing external load balancer. The request must include the load balancer ID and optionally the health check options and/or listen ports and associated backends.

## Path parameters

- `project_id` string, required
- `load_balancer_id` string, required

## Request body

- ExternalLoadBalancerPatchRequest
  - `health_check_options` HealthCheckOptionsExternalLB
    - `failure_count` integer, required — Number of allowed failures before considering the backend unhealthy.
    - `interval` integer, required — Interval between health checks (in seconds).
    - `success_count` integer, required — Number of successful checks required to consider the backend healthy.
    - `timeout` integer, required — Timeout for health check responses (in seconds).
  - `listen_ports_and_backends` ListenPortAndBackend[], required — Listen ports and associated backends configuration.
    - `backends` Backend[], required — List of backend configurations.
      - `ip` string, required — IP address of the backend server.
      - `port` integer, required — Port on which the backend server listens.
      - `status` string, required — Status of the backend server.
    - `listen_port` integer, required — Port on which the load balancer listens.

## Response `200`

- AsyncOperationResponse
  - `operation` Operation, required — Individual resources that use Operations should populate the `metadata` field with resource-specific information.
    - `completed_at` string, required
    - `metadata` string, required
    - `operation_id` string, required
    - `result` string
    - `started_at` string, required
    - `state` 'IN_PROGRESS' | 'SUCCEEDED' | 'FAILED', required

## Other responses

- `400` — Error Bad Request
- `401` — Error Authentication Failed
- `404` — Error Not Found
- `500` — Error Internal Server

---

[API](https://skmtc.dev/crusoecloud/apis/crusoe-cloud-api-gateway.md) · [All operations](https://skmtc.dev/crusoecloud/apis/crusoe-cloud-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/crusoecloud/crusoe-cloud-api-gateway/revisions/a3fd2dedc72b/schema)
