---
title: "PATCH /v2/connections/billing/{connection_id}"
method: PATCH
path: "/v2/connections/billing/{connection_id}"
tags: ["billing_connections"]
---

# PATCH /v2/connections/billing/{connection_id}

`PATCH /v2/connections/billing/{connection_id}`

Update a single Billing Connection. 
**Note:** Billing connections managed by CloudZero (such as Azure, GCP, and AWS) cannot be modified. This operation is supported only for [AnyCost Bucket connections](https://docs.cloudzero.com/docs/anycost-bucket-getting-started).

## Path parameters

- `connection_id` string, required

## Headers

- `cloudzero-idempotency-key` string
- `cloudzero-test-key` string

## Request body

- BillingConnectionUpdate
  - `name` string
  - `expected_ingest_rate` union
    - number
    - unknown
  - `is_enabled` boolean
  - `s3_bucket_info` S3BucketInfoUpdate
    - `bucket_name` string
    - `bucket_path` string
    - `cloud_account_id` union
      - string
      - unknown

## Response `200`

Successful Operation

- object
  - `connection` BillingConnection
    - `id` string, required
    - `name` string, required
    - `connection_type` string, required
    - `cloud_provider` string, required
    - `s3_bucket_info` S3BucketInfoNew, required
      - `bucket_name` string, required
      - `bucket_path` string, required
      - `cloud_account_id` string — This is the AWS Account ID with the S3 Bucket that the AnyCost Adaptor will be writing Common Bill Format files into.
    - `expected_ingest_rate` number, float, required
    - `is_enabled` boolean, required
    - `capabilities` object, required
    - `is_draft` boolean, required
    - `connection_id` string, required
    - `created` string, required — String representation of an epoch (UTC timestamp)
    - `last_updated` string, required — String representation of an epoch (UTC timestamp)

## Other responses

- `400` — Bad Request Error
- `403` — Forbidden

---

[API](https://skmtc.dev/cloudzero/apis/cloudzero-api-v2-resources.md) · [All operations](https://skmtc.dev/cloudzero/apis/cloudzero-api-v2-resources/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudzero/cloudzero-api-v2-resources/revisions/fd805a0e75e5/schema)
