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

# Extend a vm Disk

> extend a vm that user owns



## OpenAPI

````yaml /spec/Iaas.yaml post /vm/disk/{vmID}/{diskID}
openapi: 3.0.1
info:
  title: Liara Iaas API Documentaion
  description: |-
    Manage your vms and its resources

    Parameters:
    - `teamID`: To access services in a team
  termsOfService: '#'
  contact:
    email: info@liara.ir
  version: 1.0.0
servers:
  - url: https://iaas-api.liara.ir
security:
  - jwt: []
tags:
  - name: VMs
    description: Manage your VMs
externalDocs:
  description: Find out more about Iaas
  url: http://liara.ir
paths:
  /vm/disk/{vmID}/{diskID}:
    post:
      tags:
        - VMs
      summary: Extend a vm Disk
      description: extend a vm that user owns
      operationId: extendVMDisk
      parameters:
        - name: vmID
          in: path
          required: true
          schema:
            type: string
        - name: diskID
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                newSize:
                  type: number
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  taskID:
                    type: string
        '400':
          description: Bad request
          content: {}
        '401':
          description: Missing authentication
          content: {}
        '428':
          description: There is not enough space
          content: {}
components:
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````