---
title: "RenameByHash"
slug: "renamebyhash"
abstract: "How to rename an API key with a specific hash."
---
# RenameByHash

The *RenameByHash* endpoint renames an API key that is identified by its hash.

| Relative Route | `/renamebyhash/<hash>` |
| --- | --- |
| HTTP Verb | `PUT` |

## Query string parameters

The following parameter is required:

| Name | Format | Description |
| --- | --- | --- |
| `hash` | string | The hash of the key to rename. |

## Request body

The request body must contain the following fields:

| Name | Description |
| --- | --- |
| `newName` | The name of the API key. |

## Response body

The response is a boolean value indicating whether the key was renamed successfully.