---
source_url: https://www.pubnub.com/docs/admin-api/update-keyset-name-and-or-type
title: Update keyset name and/or type
---

# 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:**

* Updating a keyset from testing to production requires a paid plan

## 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"
  ]
}
```
