> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bloodydash.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Rename a preset

> Renames the preset with the specified ID to the new name provided.



## OpenAPI

````yaml /api/swagger.json patch /presets/{preset_id}
openapi: 3.0.1
info:
  title: BLOOD-V3 API
  contact: {}
  version: 0.0.1
servers:
  - url: //localhost:50000/api/v1
security: []
paths:
  /presets/{preset_id}:
    patch:
      tags:
        - Presets
      summary: Rename a preset
      description: Renames the preset with the specified ID to the new name provided.
      parameters:
        - name: preset_id
          in: path
          description: Preset ID
          required: true
          schema:
            type: string
      requestBody:
        description: Preset rename request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/handlers.renamePresetRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
        '400':
          description: Bad request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/handlers.ErrorResponse'
        '404':
          description: Preset not found
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/handlers.ErrorResponse'
        '409':
          description: Preset with new name already exists
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/handlers.ErrorResponse'
        '500':
          description: Internal server error
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/handlers.ErrorResponse'
components:
  schemas:
    handlers.renamePresetRequest:
      type: object
      properties:
        new_name:
          type: string
    handlers.ErrorResponse:
      type: object
      properties:
        error:
          type: string

````