---
title: "PATCH /v2/domains/{domainIdentifier}/account-pools/{identifier}"
method: PATCH
path: "/v2/domains/{domainIdentifier}/account-pools/{identifier}"
---

# PATCH /v2/domains/{domainIdentifier}/account-pools/{identifier}

`PATCH /v2/domains/{domainIdentifier}/account-pools/{identifier}`

Updates the account pool.

## Path parameters

- `domainIdentifier` string, required
- `identifier` string, required

## Request body

- object
  - `name` string, password — The name of the account pool that is to be updated.
  - `description` string, password — The description of the account pool that is to be udpated.
  - `resolutionStrategy` 'MANUAL' — The mechanism used to resolve the account selection from the account pool.
  - `accountSource` object — The source of accounts for the account pool. In the current release, it's either a static list of accounts provided by the customer or a custom Amazon Web Services Lambda handler.
    - `accounts` AccountInfo[] — The static list of accounts within an account pool.
      - `awsAccountId` string, required — The account ID.
      - `supportedRegions` AwsRegion[], required — The regions supported for an account within an account pool.
      - `awsAccountName` string, password — The account name.
    - `customAccountPoolHandler` object — The custom Amazon Web Services Lambda handler within an account pool.
      - `lambdaFunctionArn` string, required — The ARN of the Amazon Web Services Lambda function for the custom Amazon Web Services Lambda handler.
      - `lambdaExecutionRoleArn` string — The ARN of the IAM role that enables Amazon SageMaker Unified Studio to invoke the Amazon Web Services Lambda funtion if the account source is the custom account pool handler.

## Response `200`

Success

- UpdateAccountPoolOutput
  - `domainId` string — The domain ID where the account pool that is to be updated lives.
  - `name` string, password — The name of the account pool that is to be updated.
  - `id` string — The ID of the account pool that is to be updated.
  - `description` string, password — The description of the account pool that is to be udpated.
  - `resolutionStrategy` 'MANUAL' — The mechanism used to resolve the account selection from the account pool.
  - `accountSource` object, required — The source of accounts for the account pool. In the current release, it's either a static list of accounts provided by the customer or a custom Amazon Web Services Lambda handler.
    - `accounts` AccountInfo[] — The static list of accounts within an account pool.
      - `awsAccountId` string, required — The account ID.
      - `supportedRegions` AwsRegion[], required — The regions supported for an account within an account pool.
      - `awsAccountName` string, password — The account name.
    - `customAccountPoolHandler` object — The custom Amazon Web Services Lambda handler within an account pool.
      - `lambdaFunctionArn` string, required — The ARN of the Amazon Web Services Lambda function for the custom Amazon Web Services Lambda handler.
      - `lambdaExecutionRoleArn` string — The ARN of the IAM role that enables Amazon SageMaker Unified Studio to invoke the Amazon Web Services Lambda funtion if the account source is the custom account pool handler.
  - `createdBy` string, required — The user who created the account pool.
  - `createdAt` string, date-time — The timestamp at which the account pool was created.
  - `lastUpdatedAt` string, date-time — The timestamp at which the account pool was last updated.
  - `updatedBy` string — The user who last updated the account pool.
  - `domainUnitId` string — The domain ID in which the account pool that is to be updated lives.

## Other responses

- `480` — InternalServerException
- `481` — ResourceNotFoundException
- `482` — AccessDeniedException
- `483` — ThrottlingException
- `484` — ServiceQuotaExceededException
- `485` — ConflictException
- `486` — ValidationException
- `487` — UnauthorizedException

---

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