---
title: "POST /#X-Amz-Target=AmazonForecast.UpdateDatasetGroup"
method: POST
path: "/#X-Amz-Target=AmazonForecast.UpdateDatasetGroup"
---

# POST /#X-Amz-Target=AmazonForecast.UpdateDatasetGroup

`POST /#X-Amz-Target=AmazonForecast.UpdateDatasetGroup`

Replaces the datasets in a dataset group with the specified datasets.

The `Status` of the dataset group must be `ACTIVE` before you can use the dataset group to create a predictor. Use the [DescribeDatasetGroup](https://docs.aws.amazon.com/forecast/latest/dg/API_DescribeDatasetGroup.html) operation to get the status.

## Headers

- `X-Amz-Target` 'AmazonForecast.UpdateDatasetGroup', required

## Request body

- UpdateDatasetGroupRequest
  - `DatasetGroupArn` string, required — The ARN of the dataset group.
  - `DatasetArns` Arn[], required — An array of the Amazon Resource Names (ARNs) of the datasets to add to the dataset group.

## Response `200`

Success

- UpdateDatasetGroupResponse

## Other responses

- `480` — InvalidInputException
- `481` — ResourceNotFoundException
- `482` — ResourceInUseException

---

[API](https://skmtc.net/aws/apis/forecast.md) · [All operations](https://skmtc.net/aws/apis/forecast/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/forecast/versions/3d1c872d2ac9/schema)
