---
title: "POST /mr-api/service-account/{id}/reset-api-key"
method: POST
path: "/mr-api/service-account/{id}/reset-api-key"
tags: ["ServiceAccountService"]
---

# POST /mr-api/service-account/{id}/reset-api-key

`POST /mr-api/service-account/{id}/reset-api-key`

Causes a new API Key to be generated. Ensure you confirm this with the user.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `apiKeyType` 'client_eval_only' | 'server_eval_only'

## Response `200`

Details of service account

- ServiceAccount
  - `id` string, uuid
  - `name` string, required
  - `portfolioId` string, uuid
  - `description` string
  - `version` integer
  - `apiKeyClientSide` string — this is a read only field, it denotes an api key where the eval is done client side
  - `apiKeyServerSide` string — this is a read only field, it denotes an api key where the eval is done server side
  - `permissions` ServiceAccountPermission[]
    - `id` string, uuid
    - `permissions` RoleType[], required
    - `serviceAccount` ServiceAccount — recursive
    - `environmentId` string, uuid, required
    - `sdkUrlClientEval` string — Optional if they have chosen includeSdkUrl
    - `sdkUrlServerEval` string — Optional if they have chosen includeSdkUrl
  - `whenArchived` string, date-time

## Other responses

- `400` — Bad Request
- `401` — no permission
- `403` — forbidden
- `404` — not found

---

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