{
 "openapi": "3.1.0",
 "info": {
  "title": "Gyro Public API",
  "version": "2.44.0",
  "summary": "Manage Gyro cloud servers, SSH keys and billing programmatically.",
  "x-summary-tr": "Gyro bulut sunucularınızı, SSH anahtarlarınızı ve faturalarınızı programla yönetin.",
  "contact": {
   "name": "Gyro Hosting",
   "url": "https://www.gyrohosting.com"
  },
  "license": {
   "name": "Proprietary",
   "identifier": "LicenseRef-Gyro-API-Terms"
  }
 },
 "servers": [
  {
   "url": "https://www.gyrohosting.com/api/v1/client",
   "description": "Production"
  }
 ],
 "paths": {
  "/cloud/backup-spaces/{id}": {
   "delete": {
    "tags": [
     "Backup space"
    ],
    "operationId": "deleteBackupSpace",
    "summary": "Cancel (delete) a backup space",
    "x-summary-tr": "Yedekleme alanını iptal et (sil)",
    "x-scope": "cloud_delete",
    "x-cli": {
     "command": "backup-space delete",
     "confirm": true
    },
    "description": "`confirm=true` is required. `immediate=true` cancels now: SFTP access stops and the space with EVERY file in it is deleted permanently within about a minute (no snapshot, no grace period; cannot be undone). Without `immediate` a cancellation request is filed and the space keeps working until it is processed. 403 `immediate_disabled` when the operator turned immediate deletion off.",
    "x-description-tr": "`confirm=true` zorunlu. `immediate=true` hemen iptal eder: SFTP erişimi durur ve alan İÇİNDEKİ TÜM DOSYALARLA yaklaşık bir dakikada kalıcı olarak silinir (snapshot yok, bekleme süresi yok; geri alınamaz). `immediate` olmadan iptal talebi açılır, işlenene kadar alan çalışır. Anında silme operatörce kapatıldıysa 403 `immediate_disabled`.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer"
      },
      "description": "Backup space (service) id",
      "x-description-tr": "Yedekleme alanı (hizmet) kimliği"
     },
     {
      "name": "confirm",
      "in": "query",
      "required": true,
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "immediate",
      "in": "query",
      "schema": {
       "type": "boolean"
      },
      "description": "delete the space and every file now (cannot be undone)",
      "x-description-tr": "alanı ve tüm dosyaları şimdi sil (geri alınamaz)"
     }
    ],
    "responses": {
     "202": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "object",
           "properties": {
            "status": {
             "type": "string",
             "enum": [
              "cancelling",
              "cancellation_requested",
              "cancelled"
             ]
            },
            "backup_space_id": {
             "type": "integer"
            },
            "note": {
             "type": "string"
            }
           }
          }
         }
        }
       }
      }
     },
     "403": {
      "$ref": "#/components/responses/Forbidden"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "422": {
      "$ref": "#/components/responses/Validation"
     }
    }
   }
  }
 },
 "components": {
  "responses": {
   "Validation": {
    "description": "Validation or business rule failure (`confirm_required`, `invalid_image`, `tool_action_failed` ...)",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      }
     }
    }
   },
   "NotFound": {
    "description": "Not found — also returned for objects owned by someone else",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      }
     }
    }
   },
   "Forbidden": {
    "description": "Key lacks the scope, IP not allowed, or feature disabled",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      }
     }
    }
   }
  },
  "schemas": {
   "Error": {
    "type": "object",
    "required": [
     "error"
    ],
    "properties": {
     "error": {
      "type": "object",
      "required": [
       "code",
       "message"
      ],
      "properties": {
       "code": {
        "type": "string",
        "example": "server_not_found"
       },
       "message": {
        "type": "string"
       },
       "details": {
        "type": "object",
        "additionalProperties": true,
        "description": "Extra data. Limit refusals add the LimitHint fields (`limit_exceeded: true`, `limit_key`, `limit`, `current`, `how_to_increase`, `support_ticket`, `hint`): account limits are raised with a support ticket. Validation errors (length, format) never carry the limit hint.",
        "x-description-tr": "Ek veri. Sınır retlerinde LimitHint alanları gelir: hesap sınırları destek talebiyle artırılır. Doğrulama hataları (uzunluk, biçim) sınır ipucu taşımaz."
       }
      }
     }
    }
   }
  }
 },
 "security": [
  {
   "bearerAuth": []
  }
 ]
}