---
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 AWS IoT SiteWise User Guide.

## Request body

- object
  - `encryptionType` 'MANAGED_INTEGRATIONS_DEFAULT_ENCRYPTION' | 'CUSTOMER_KEY_ENCRYPTION', required — The type of encryption used for the encryption configuration.
  - `kmsKeyArn` string — The Key Amazon Resource Name (ARN) of the AWS KMS key used for KMS encryption if you use <code>KMS_BASED_ENCRYPTION</code>.

## Response `201`

Success

- PutDefaultEncryptionConfigurationResponse
  - `configurationStatus` object, required — Provides the status of the default encryption configuration for an Amazon Web Services account.
    - `error` object — The error details describing a failed default encryption configuration update.
      - `code` string — The error code returned when the default encryption configuration update fails.
      - `message` string — The error message returned when the default encryption configuration update fails.
    - `state` 'ENABLED' | 'UPDATE_IN_PROGRESS' | 'UPDATE_FAILED', required — The status state describing the default encryption configuration update.
  - `encryptionType` 'MANAGED_INTEGRATIONS_DEFAULT_ENCRYPTION' | 'CUSTOMER_KEY_ENCRYPTION', required — The type of encryption used for the encryption configuration.
  - `kmsKeyArn` string — The Key Amazon Resource Name (ARN) of the AWS KMS key used for KMS encryption if you use <code>KMS_BASED_ENCRYPTION</code>.

## Other responses

- `480` — ValidationException
- `481` — AccessDeniedException
- `482` — InternalFailureException
- `483` — UnauthorizedException
- `484` — ServiceUnavailableException
- `485` — ThrottlingException
- `486` — ResourceNotFoundException

---

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