---
title: "Update a ChatGPT Enterprise integration account"
method: PATCH
path: "/api/v2/integration-interfaces/chatgpt-enterprise/accounts/{account_id}"
tags: ["ChatGPT Enterprise Integration"]
---

# Update a ChatGPT Enterprise integration account

`PATCH /api/v2/integration-interfaces/chatgpt-enterprise/accounts/{account_id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/integration-interfaces/chatgpt-enterprise/accounts/{account_id}`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token`

Update a ChatGPT Enterprise integration account. Only the fields provided are changed.

## Path parameters

- `account_id` string, required

## Request body

- ChatGPTEnterpriseIntegrationAccountUpdateRequest: Request payload to update a ChatGPT Enterprise integration account.
  - `data` ChatGPTEnterpriseIntegrationAccountUpdateData, required: Data envelope for updating a ChatGPT Enterprise integration account.
    - `attributes` ChatGPTEnterpriseIntegrationAccountUpdateAttributes, required: Writable attributes used to update a ChatGPT Enterprise integration account. Every field is optional. Only the provided fields are changed. When `dataflows` is provided, only the dataflow IDs in the request are modified. Dataflows omitted from the map keep their current configuration.
      - `authentication` ChatGPTEnterpriseIntegrationAccountAuthenticationUpdate: Bearer token authentication. Use an admin key with the **Costs** permission set to **Read**. Create the key in the OpenAI Admin Console of your ChatGPT Enterprise workspace, not in the API Platform admin-key console. Only the provided fields are changed. To keep the stored token, omit `token`.
        - `auth_type` 'bearer_token', required: The authentication method type.
        - `token` string: Secret token used to authenticate with ChatGPT Enterprise.
      - `dataflows` ChatGPTEnterpriseIntegrationDataflowsRequest: Data Datadog collects from ChatGPT Enterprise, keyed by dataflow ID. Each dataflow turns on a distinct type of collection. Set `enabled` to start or stop a dataflow. The default for each dataflow applies when the account is created. On update, omitted fields keep their current values. Every dataflow requires a ChatGPT Enterprise workspace with access to the OpenAI Costs API. If you enable a dataflow without this access, Datadog stores the setting but collects no data.
        - `chatgpt-enterprise-agent-console` ChatGPTEnterpriseAgentConsoleIntegrationDataflowRequest: Activity, token consumption, credits, and estimated usage costs across ChatGPT Chat, ChatGPT Work, and Codex, shown in Agent Console with breakdowns by product, model, and user where OpenAI provides them. Data already available from OpenAI appears within 1 hour after you enable this dataflow.
          - `enabled` boolean, required: Whether Datadog collects this data. Defaults to `true`. Set to `false` to stop collection.
        - `chatgpt-enterprise-cloud-cost-data` ChatGPTEnterpriseCloudCostDataIntegrationDataflowRequest: ChatGPT Enterprise costs from the OpenAI Costs API, which you can analyze in [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management/). These costs are excluded from Cloud Cost Management spend-monitored billing. Reported costs are estimates, not final invoice amounts.
          - `enabled` boolean: Whether Datadog collects this data. Defaults to `false`. Set to `true` to start collection.
      - `name` string: Human-readable name of the ChatGPT Enterprise integration account.
      - `settings` ChatGPTEnterpriseIntegrationAccountSettingsUpdate: Settings for updating the ChatGPT Enterprise integration account. Only the fields provided are changed.
        - `openai_org_id` string: OpenAI API Platform organization ID (`org-...`) that the Costs API uses for your Enterprise usage. This is not the ChatGPT workspace UUID or your Datadog organization ID. A value that does not match `^org-[A-Za-z0-9]+$` is rejected with a `422` response.
    - `id` string, required: Unique identifier of the ChatGPT Enterprise integration account to update.
    - `type` 'integration-account', required: The type of the integration account resource. Always `integration-account`.

## Response `200`

OK

- ChatGPTEnterpriseIntegrationAccountResponse: Response payload for a single ChatGPT Enterprise integration account.
  - `data` ChatGPTEnterpriseIntegrationAccountResponseData, required: Data envelope of a ChatGPT Enterprise integration account, including server-assigned identity.
    - `attributes` ChatGPTEnterpriseIntegrationAccountResponseAttributes, required: Attributes of a ChatGPT Enterprise integration account returned in responses.
      - `authentication` ChatGPTEnterpriseIntegrationAccountAuthenticationResponse: The bearer token authentication method configured on the account.
        - `auth_type` 'bearer_token', required: The authentication method type.
      - `dataflows` ChatGPTEnterpriseIntegrationDataflowsResponse: Data Datadog collects from ChatGPT Enterprise, keyed by dataflow ID.
        - `chatgpt-enterprise-agent-console` ChatGPTEnterpriseAgentConsoleIntegrationDataflowResponse: Activity, token consumption, credits, and estimated usage costs across ChatGPT Chat, ChatGPT Work, and Codex, shown in Agent Console with breakdowns by product, model, and user where OpenAI provides them.
          - `enabled` boolean: Whether Datadog collects this data.
          - `status` IntegrationAccountDataflowStatus: Read-only collection status of a dataflow.
            - `health` 'DATAFLOW_HEALTH_OK' | 'DATAFLOW_HEALTH_BROKEN' | 'DATAFLOW_HEALTH_UNKNOWN': Collection health of a single dataflow.
            - `message` string: Human-readable detail, populated when the dataflow is not healthy.
            - `updated_at` string, date-time: Time the status was last computed.
        - `chatgpt-enterprise-cloud-cost-data` ChatGPTEnterpriseCloudCostDataIntegrationDataflowResponse: ChatGPT Enterprise costs from the OpenAI Costs API, which you can analyze in [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management/). These costs are excluded from Cloud Cost Management spend-monitored billing. Reported costs are estimates, not final invoice amounts.
          - `enabled` boolean: Whether Datadog collects this data.
          - `status` IntegrationAccountDataflowStatus: Read-only collection status of a dataflow.
            - `health` 'DATAFLOW_HEALTH_OK' | 'DATAFLOW_HEALTH_BROKEN' | 'DATAFLOW_HEALTH_UNKNOWN': Collection health of a single dataflow.
            - `message` string: Human-readable detail, populated when the dataflow is not healthy.
            - `updated_at` string, date-time: Time the status was last computed.
      - `name` string, required: Human-readable name of the ChatGPT Enterprise integration account.
      - `settings` ChatGPTEnterpriseIntegrationAccountSettingsResponse, required: Settings configured on the ChatGPT Enterprise integration account.
        - `openai_org_id` string, required: OpenAI API Platform organization ID (`org-...`) that the Costs API uses for your Enterprise usage. This is not the ChatGPT workspace UUID or your Datadog organization ID. A value that does not match `^org-[A-Za-z0-9]+$` is rejected with a `422` response.
    - `id` string, required: Server-generated unique identifier of the ChatGPT Enterprise integration account.
    - `type` 'integration-account', required: The type of the integration account resource. Always `integration-account`.

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `422`: The server cannot process the request because it contains invalid data.
- `429`: Too many requests

## Changes

- **2026-11-17** `7929fe94bf45`: 2 breaking, 12 info
  - the `errors/items/` response's property type changed from `string` to `object` for status `400`
  - the `errors/items/` response's property type changed from `string` to `object` for status `404`
  - added the optional property `errors/items/code` to the response with the `400` status
  - added the optional property `errors/items/code` to the response with the `404` status
  - …10 more
- **2026-11-17** `787849146616`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/changes/api/v2/integration-interfaces/chatgpt-enterprise/accounts/:account_id/patch.md)

---

[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/8d1a5e5973da?raw)
