---
title: "Update a Custom Code Logging"
method: PATCH
path: "/ccl/v1/custom-code-loggings/{id}"
tags: ["Custom Code Loggings (ccl/v1)"]
---

# Update a Custom Code Logging

`PATCH /ccl/v1/custom-code-loggings/{id}`

[![Early Access](https://img.shields.io/badge/Lifecycle%20Stage-Early%20Access-%2345c6e8)](#section/Versioning/API-Lifecycle-Policy) [![Request Access To Custom Code Logging API EA](https://img.shields.io/badge/-Request%20Access%20To%20Custom%20Code%20Logging%20API%20EA-%23bc8540)](mailto:ccloud-api-access+ccl-v1-early-access@confluent.io?subject=Request%20to%20join%20ccl/v1%20API%20Early%20Access&body=I%E2%80%99d%20like%20to%20join%20the%20Confluent%20Cloud%20API%20Early%20Access%20for%20ccl/v1%20to%20provide%20early%20feedback%21%20My%20Cloud%20Organization%20ID%20is%20%3Cretrieve%20from%20https%3A//confluent.cloud/settings/billing/payment%3E.)

Make a request to update a custom code logging.

## Path parameters

- `id` string, required

## Query parameters

- `environment` string, required — Filter a collection by a string search

## Request body

- object — CustomCodeLogging objects represent Custom Code Logging on Confluent Cloud. The API allows you to list, create, read, update, and delete your Custom Code Logging. ## The Custom Code Loggings Model <SchemaDefinition schemaRef="#/components/schemas/ccl.v1.CustomCodeLogging" />
  - `api_version` 'ccl/v1' — APIVersion defines the schema version of this representation of a resource.
  - `kind` 'CustomCodeLogging' — Kind defines the object this REST resource represents.
  - `id` string — ID is the "natural identifier" for an object within its scope/namespace; it is normally unique across time but not space. That is, you can assume that the ID will not be reclaimed and reused after an object is deleted ("time"); however, it may collide with IDs for other object `kinds` or objects of the same `kind` within a different scope/namespace ("space").
  - `metadata` object — ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
    - `self` string, uri, required — Self is a Uniform Resource Locator (URL) at which an object can be addressed. This URL encodes the service location, API version, and other particulars necessary to locate the resource at a point in time
    - `resource_name` string, uri — Resource Name is a Uniform Resource Identifier (URI) that is globally unique across space and time. It is represented as a Confluent Resource Name
    - `created_at` string, date-time — The date and time at which this object was created. It is represented in RFC3339 format and is in UTC.
    - `updated_at` string, date-time — The date and time at which this object was last updated. It is represented in RFC3339 format and is in UTC.
    - `deleted_at` string, date-time — The date and time at which this object was (or will be) deleted. It is represented in RFC3339 format and is in UTC.
  - `cloud` string — Cloud provider where the Custom Code Logging is sent.
  - `region` string — The Cloud provider region the Custom Code Logging is sent.
  - `destination_settings` object — Kafka Destination Settings of the Custom Code Logging.
    - `kind` 'Kafka', required — The destination where Custom Code Logging is sent.
    - `cluster_id` string, required — The kafka cluster id where Custom Code Logging is sent.
    - `topic` string, required — The kafka topic where Custom Code Logging is sent.
    - `log_level` string — Minimum log level for Custom Code Logging.
  - `environment` object, required — The environment to which this belongs.
    - `id` string, required — ID of the referred resource
    - `environment` string — Environment of the referred resource, if env-scoped
    - `related` string, uri, required — API URL for accessing or modifying the referred object
    - `resource_name` string, uri, required — CRN reference to the referred resource

## Response `200`

Custom Code Logging.

- object — CustomCodeLogging objects represent Custom Code Logging on Confluent Cloud. The API allows you to list, create, read, update, and delete your Custom Code Logging. ## The Custom Code Loggings Model <SchemaDefinition schemaRef="#/components/schemas/ccl.v1.CustomCodeLogging" />
  - `api_version` 'ccl/v1', required — APIVersion defines the schema version of this representation of a resource.
  - `kind` 'CustomCodeLogging', required — Kind defines the object this REST resource represents.
  - `id` string, required — ID is the "natural identifier" for an object within its scope/namespace; it is normally unique across time but not space. That is, you can assume that the ID will not be reclaimed and reused after an object is deleted ("time"); however, it may collide with IDs for other object `kinds` or objects of the same `kind` within a different scope/namespace ("space").
  - `metadata` object — ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
    - `self` string, uri, required — Self is a Uniform Resource Locator (URL) at which an object can be addressed. This URL encodes the service location, API version, and other particulars necessary to locate the resource at a point in time
    - `resource_name` string, uri — Resource Name is a Uniform Resource Identifier (URI) that is globally unique across space and time. It is represented as a Confluent Resource Name
    - `created_at` string, date-time — The date and time at which this object was created. It is represented in RFC3339 format and is in UTC.
    - `updated_at` string, date-time — The date and time at which this object was last updated. It is represented in RFC3339 format and is in UTC.
    - `deleted_at` string, date-time — The date and time at which this object was (or will be) deleted. It is represented in RFC3339 format and is in UTC.
  - `cloud` string, required — Cloud provider where the Custom Code Logging is sent.
  - `region` string, required — The Cloud provider region the Custom Code Logging is sent.
  - `destination_settings` object, required — Kafka Destination Settings of the Custom Code Logging.
    - `kind` 'Kafka', required — The destination where Custom Code Logging is sent.
    - `cluster_id` string, required — The kafka cluster id where Custom Code Logging is sent.
    - `topic` string, required — The kafka topic where Custom Code Logging is sent.
    - `log_level` string — Minimum log level for Custom Code Logging.
  - `environment` object, required — The environment to which this belongs.
    - `id` string, required — ID of the referred resource
    - `environment` string — Environment of the referred resource, if env-scoped
    - `related` string, uri, required — API URL for accessing or modifying the referred object
    - `resource_name` string, uri, required — CRN reference to the referred resource

## Other responses

- `400` — Bad Request
- `401` — The request lacks valid authentication credentials for this resource.
- `403` — The access credentials were considered insufficient to grant access
- `404` — Not Found
- `409` — The request is in conflict with the current server state
- `422` — Validation Failed
- `429` — Rate Limit Exceeded
- `500` — Oops, something went wrong!

---

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