---
title: "POST /configuration/account/encryption"
method: POST
path: "/configuration/account/encryption"
---

# POST /configuration/account/encryption

`POST /configuration/account/encryption`

Sets the default encryption configuration for the Amazon Web Services account. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/key-management.html">Key management</a> in the <i>IoT SiteWise User Guide</i>.

## Request body

- object
  - `encryptionType` 'SITEWISE_DEFAULT_ENCRYPTION' | 'KMS_BASED_ENCRYPTION', required — The type of encryption used for the encryption configuration.
  - `kmsKeyId` string — The Key ID of the customer managed key used for KMS encryption. This is required if you use <code>KMS_BASED_ENCRYPTION</code>.

## Response `200`

Success

- PutDefaultEncryptionConfigurationResponse
  - `encryptionType` 'SITEWISE_DEFAULT_ENCRYPTION' | 'KMS_BASED_ENCRYPTION', required — The type of encryption used for the encryption configuration.
  - `kmsKeyArn` string — The Key ARN of the KMS key used for KMS encryption if you use <code>KMS_BASED_ENCRYPTION</code>.
  - `configurationStatus` object, required — The status of the account configuration. This contains the <code>ConfigurationState</code>. If there is an error, it also contains the <code>ErrorDetails</code>.
    - `state` 'ACTIVE' | 'UPDATE_IN_PROGRESS' | 'UPDATE_FAILED', required — The current state of the configuration.
    - `error` object — Contains associated error information, if any.
      - `code` 'VALIDATION_ERROR' | 'INTERNAL_FAILURE', required — The error code.
      - `message` string, required — The error message.

## Other responses

- `480` — InvalidRequestException
- `481` — InternalFailureException
- `482` — ThrottlingException
- `483` — LimitExceededException
- `484` — ConflictingOperationException

---

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