---
source_url: https://www.pubnub.com/docs/admin-api/v2026-02-09/update-keyset-name-and-or-type
title: Update keyset name and/or type
description: Updates a keyset's name and/or type. At least one field must be provided.
---

# Update keyset name and/or type

> For AI agents: documentation index at https://www.pubnub.com/llms-full.txt

Updates a keyset's name and/or type. At least one field must be provided.

**Note:**

* Free and paid accounts can convert testing keysets to production, subject to authorization and applicable feature restrictions. Conversion retains the keyset identity and does not consume another slot in the total account keyset quota, even when that quota is exhausted.
* Testing keysets have lower rate limits. Production mode does not grant paid-plan entitlements.

## Request

Example

```
{
  "name": "string",
  "type": "testing",
  "appId": "string",
  "id": "string",
  "publishKey": "string",
  "subscribeKey": "string",
  "createdAt": "string",
  "updatedAt": "string"
}
```

Example

```
{
  "statusCode": 0,
  "error": "BadRequest",
  "message": [
    "string"
  ]
}
```

Example

```
{
  "statusCode": 0,
  "error": "Unauthorized",
  "message": [
    "string"
  ]
}
```

Example

```
{
  "statusCode": 0,
  "error": "Forbidden",
  "message": [
    "string"
  ]
}
```

Example

```
{
  "statusCode": 0,
  "error": "NotFound",
  "message": [
    "string"
  ]
}
```

Example

```
{
  "statusCode": 0,
  "error": "InternalError",
  "message": [
    "string"
  ]
}
```
