# Changing the project key

The project key can be updated as follows:

<figure><img src="/files/3sfIu6S0DOWKs11flbjC" alt="Updating a project key"><figcaption></figcaption></figure>

1. Retrieve your project. See [Retrieving projects](/sonarqube-server/user-guide/viewing-projects/retrieving-projects.md) for more details.
2. Go to **Project Settings** > **Update Key**.

The new key must contain at least one non-digit character. Allowed characters are: `a` through `z`, `A` through `Z`, `-` (dash), `_` (underscore), `.` (dot), `:` (colon) and the digits `0` through `9`. This value is case-sensitive.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-server/project-administration/maintaining-project/changing-project-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
