---
title: "Update Cloud Cost Management AWS CUR config"
method: PATCH
path: "/api/v2/cost/aws_cur_config/{cloud_account_id}"
tags: ["Cloud Cost Management"]
---

# Update Cloud Cost Management AWS CUR config

`PATCH /api/v2/cost/aws_cur_config/{cloud_account_id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/cost/aws_cur_config/{cloud_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` scopes: `cloud_cost_management_write`

Update the status (active/archived) and/or account filtering configuration of an AWS CUR config.

## Path parameters

- `cloud_account_id` integer, required

## Request body

- AwsCURConfigPatchRequest: AWS CUR config Patch Request.
  - `data` AwsCURConfigPatchData, required: AWS CUR config Patch data.
    - `attributes` AwsCURConfigPatchRequestAttributes, required: Attributes for AWS CUR config Patch Request.
      - `account_filters` AccountFilteringConfig: The account filtering configuration.
        - `excluded_accounts` string[]: The AWS account IDs to be excluded from your billing dataset. This field is used when `include_new_accounts` is `true`.
        - `include_new_accounts` boolean, nullable: Whether or not to automatically include new member accounts by default in your billing dataset.
        - `included_accounts` string[]: The AWS account IDs to be included in your billing dataset. This field is used when `include_new_accounts` is `false`.
      - `is_enabled` boolean: Whether or not the Cloud Cost Management account is enabled.
    - `type` 'aws_cur_config_patch_request', required: Type of AWS CUR config Patch Request.

## Response `200`

OK

- AwsCURConfigsResponse: List of AWS CUR configs.
  - `data` AwsCURConfig[], required: An AWS CUR config.
    - `attributes` AwsCURConfigAttributes, required: Attributes for An AWS CUR config.
      - `account_filters` AccountFilteringConfig: The account filtering configuration.
        - `excluded_accounts` string[]: The AWS account IDs to be excluded from your billing dataset. This field is used when `include_new_accounts` is `true`.
        - `include_new_accounts` boolean, nullable: Whether or not to automatically include new member accounts by default in your billing dataset.
        - `included_accounts` string[]: The AWS account IDs to be included in your billing dataset. This field is used when `include_new_accounts` is `false`.
      - `account_id` string, required: The AWS account ID.
      - `bucket_name` string, required: The AWS bucket name used to store the Cost and Usage Report.
      - `bucket_region` string, required: The region the bucket is located in.
      - `created_at` string: The timestamp when the AWS CUR config was created.
      - `error_messages` string[], nullable: The error messages for the AWS CUR config.
      - `months` integer: The number of months the report has been backfilled.
      - `report_name` string, required: The name of the Cost and Usage Report.
      - `report_prefix` string, required: The report prefix used for the Cost and Usage Report.
      - `status` string, required: The status of the AWS CUR.
      - `status_updated_at` string: The timestamp when the AWS CUR config status was updated.
      - `updated_at` string: The timestamp when the AWS CUR config status was updated.
    - `id` string: The ID of the AWS CUR config.
    - `type` 'aws_cur_config', required: Type of AWS CUR config.

## Other responses

- `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)
