> ## 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 strategy

> Renames an existing strategy identified by its ID.



## OpenAPI

````yaml /api/swagger.json patch /strategies/{strategy_id}
openapi: 3.0.1
info:
  title: BLOOD-V3 API
  contact: {}
  version: 0.0.1
servers:
  - url: //localhost:50000/api/v1
security: []
paths:
  /strategies/{strategy_id}:
    patch:
      tags:
        - Strategies
      summary: Rename a strategy
      description: Renames an existing strategy identified by its ID.
      parameters:
        - name: strategy_id
          in: path
          description: Strategy ID
          required: true
          schema:
            type: string
      requestBody:
        description: New name for the strategy
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/handlers.renameStrategyRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
        '400':
          description: Invalid request body or missing strategy ID
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/handlers.ErrorResponse'
        '404':
          description: Strategy not found
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/handlers.ErrorResponse'
        '409':
          description: Strategy with the 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.renameStrategyRequest:
      type: object
      properties:
        new_name:
          type: string
    handlers.ErrorResponse:
      type: object
      properties:
        error:
          type: string

````