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

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

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

To disable health checking, pass "health_check": {"port": 0}.

## Path parameters

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

## Request body

- LoadBalancersPatchRequestV1
  - `destinations` NetworkTarget[] — Backend targets the load balancer forwards traffic to, given as CIDR blocks or resource IDs.
    - `cidr` string — CIDR block, or an IP address that is converted to a CIDR. Mutually exclusive with resource_id.
    - `resource_id` string — ID of a backend resource. Mutually exclusive with cidr.
  - `health_check` HealthCheckOptions
    - `failure_count` string — Number of allowed failures before considering a backend unhealthy.
    - `interval` string — Interval between health checks, in seconds.
    - `port` string, required — Port on which to perform health checks.
    - `success_count` string — Number of successful checks required to consider a backend healthy.
    - `timeout` string — Timeout for a health check response, in seconds.
  - `name` string — New name for the load balancer.

## 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
- `403` — Error Permissions
- `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)
