---
title: "Regenerate key of the EngagementFabric account"
method: POST
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EngagementFabric/Accounts/{accountName}/regenerateKey"
tags: ["Accounts"]
---

# Regenerate key of the EngagementFabric account

`POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EngagementFabric/Accounts/{accountName}/regenerateKey`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EngagementFabric/Accounts/{accountName}/regenerateKey`
- Auth: none declared

## Path parameters

- `subscriptionId` string, required
- `resourceGroupName` string, required
- `accountName` string, required

## Query parameters

- `api-version` string, required

## Request body

- RegenerateKeyParameter: The parameter to regenerate single EngagementFabric account key
  - `name` string, required: The name of key to be regenerated
  - `rank` 'PrimaryKey' | 'SecondaryKey', required: The rank of the EngagementFabric account key

## Response `200`

OK

- KeyDescription: The description of the EngagementFabric account key
  - `name` string: The name of the key
  - `rank` 'PrimaryKey' | 'SecondaryKey': The rank of the EngagementFabric account key
  - `value` string: The value of the key

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/azure/apis/engagementfabric.md) - [All operations](https://skmtc.dev/azure/apis/engagementfabric/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/engagementfabric/revisions/8218dde02018?raw)
