---
title: "Add resource to Confluent account"
method: POST
path: "/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources"
tags: ["Confluent Cloud"]
---

# Add resource to Confluent account

`POST /api/v2/integrations/confluent-cloud/accounts/{account_id}/resources`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Create a Confluent resource for the account associated with the provided ID.

## Path parameters

- `account_id` string, required

## Request body

- ConfluentResourceRequest: The JSON:API request for updating a Confluent resource.
  - `data` ConfluentResourceRequestData, required: JSON:API request for updating a Confluent resource.
    - `attributes` ConfluentResourceRequestAttributes, required: Attributes object for updating a Confluent resource.
      - `enable_custom_metrics` boolean: Enable the `custom.consumer_lag_offset` metric, which contains extra metric tags.
      - `resource_type` string, required: The resource type of the Resource. Can be `kafka`, `connector`, `ksql`, or `schema_registry`.
      - `tags` string[]: A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
    - `id` string, required: The ID associated with a Confluent resource.
    - `type` 'confluent-cloud-resources', required: The JSON:API type for this request.

## Response `201`

OK

- ConfluentResourceResponse: Response schema when interacting with a Confluent resource.
  - `data` ConfluentResourceResponseData: Confluent Cloud resource data.
    - `attributes` ConfluentResourceResponseAttributes, required: Model representation of a Confluent Cloud resource.
      - `enable_custom_metrics` boolean: Enable the `custom.consumer_lag_offset` metric, which contains extra metric tags.
      - `id` string: The ID associated with the Confluent resource.
      - `resource_type` string, required: The resource type of the Resource. Can be `kafka`, `connector`, `ksql`, or `schema_registry`.
      - `tags` string[]: A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
    - `id` string, required: The ID associated with the Confluent resource.
    - `type` 'confluent-cloud-resources', required: The JSON:API type for this request.

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
