# Rename a site

Changes the system name of a site.

Endpoint: POST /api/v1/sites/{siteId}/rename
Version: v1
Security: Bearer

## Path parameters:

  - `siteId` (string, required)
    The identifier of the site you want to rename.
    Example: "497f6eca-6276-4993-bfeb-53cbbbba6f08"

## Query parameters:

  - `environmentId` (string)
    The identifier of the environment
    Example: "main"

## Request fields (application/json):

  - `name` (string, required)
    The new name for the site.
Example value: new-site
    Example: "new-site"

## Response 200 fields (application/json):

  - `handle` (string,null)

## Response 400 fields (application/json):

  - `type` (string,null)
    The type of the error response entity.

  - `title` (string,null)
    The title of the error response entity.

  - `status` (integer,null)
    The response status code.

  - `detail` (string,null)
    A detailed explanation, specific to this occurrence of the problem.

  - `instance` (string,null)
    If available, a URI reference that identifies the specific occurrence of the problem.

## Response 404 fields (application/json):

  - `type` (string,null)
    The type of the error response entity.

  - `title` (string,null)
    The title of the error response entity.

  - `status` (integer,null)
    The response status code.

  - `detail` (string,null)
    A detailed explanation, specific to this occurrence of the problem.

  - `instance` (string,null)
    If available, a URI reference that identifies the specific occurrence of the problem.


