---
title: "POST /#X-Amz-Target=PaymentCryptographyControlPlane.UpdateAlias"
method: POST
path: "/#X-Amz-Target=PaymentCryptographyControlPlane.UpdateAlias"
---

# POST /#X-Amz-Target=PaymentCryptographyControlPlane.UpdateAlias

`POST /#X-Amz-Target=PaymentCryptographyControlPlane.UpdateAlias`

Associates an existing Amazon Web Services Payment Cryptography alias with a different key. Each alias is associated with only one Amazon Web Services Payment Cryptography key at a time, although a key can have multiple aliases. The alias and the Amazon Web Services Payment Cryptography key must be in the same Amazon Web Services account and Amazon Web Services Region

**Cross-account use:** This operation can't be used across different Amazon Web Services accounts.

**Related operations:**

*   [CreateAlias](https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateAlias.html)
    
*   [DeleteAlias](https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteAlias.html)
    
*   [GetAlias](https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetAlias.html)
    
*   [ListAliases](https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListAliases.html)

## Headers

- `X-Amz-Target` 'PaymentCryptographyControlPlane.UpdateAlias', required

## Request body

- UpdateAliasInput
  - `AliasName` string, required — The alias whose associated key is changing.
  - `KeyArn` string — The <code>KeyARN</code> for the key that you are updating or removing from the alias.

## Response `200`

Success

- UpdateAliasOutput
  - `Alias` object, required — The alias name.
    - `AliasName` string, required — <p>A friendly name that you can use to refer to a key. The value must begin with <code>alias/</code>.</p> <important> <p>Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.</p> </important>
    - `KeyArn` string — The <code>KeyARN</code> of the key associated with the alias.

## Other responses

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

---

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