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

# Update rental

> Update rental information



## OpenAPI

````yaml https://console.gputrader.io/assets/gputrader-api.json patch /rentals/{rentalId}
openapi: 3.1.1
info:
  title: GPU Trader API
  version: 0.4.16
  description: This is the Swagger/OpenAPI-compatible GPUTrader API documentation
servers:
  - url: https://api.gputrader.io/v1
security: []
tags: []
paths:
  /rentals/{rentalId}:
    patch:
      tags:
        - Rentals
      summary: Update rental
      description: Update rental information
      parameters:
        - in: path
          name: rentalId
          required: true
          schema:
            type: string
          description: Rental ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: New name for the rental
      responses:
        '200':
          description: Rental successfully updated
          content:
            application/json:
              schema:
                type: string
        '400':
          description: Invalid request body
        '404':
          description: Rental not found
        '500':
          description: Internal server error
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````