{
 "openapi": "3.1.0",
 "info": {
  "title": "Gyro Public API",
  "version": "2.30.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": {
  "/domains/{domain}/whois": {
   "put": {
    "tags": [
     "Domains and DNS"
    ],
    "operationId": "coreUpdateWhoisContacts",
    "summary": "Update whois contacts (path: {domain})",
    "x-summary-tr": "Alan Adı Kişilerini Yazma",
    "x-scope": "Domains/UpdateWhoisContacts",
    "x-generated": "core-catalog",
    "description": "Update whois contacts (path: {domain}). Domain operations run against the registrar module of the domain.\n\nCore WISECP client endpoint (Turkish reference: https://dev.wisecp.com/tr/alan-adi-kisileri-ve-gizlilik).",
    "x-description-tr": "Bir kişiyi seçilen role ya da dört role birden yazar. — sicile yazar",
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "type": "object",
           "additionalProperties": true
          }
         }
        }
       }
      }
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "$ref": "#/components/responses/Forbidden"
     },
     "404": {
      "description": "not_found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "contact_email_invalid, contact_field_invalid, contact_field_required, contact_name_required, not_actionable, role_invalid, whois_failed, whois_not_supported, whois_rejected",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "500": {
      "description": "whois_failed",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "domain",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "role": {
          "type": "string",
          "description": "Hangi rollere yazılacağı. Verilmezse dört rolün hepsine yazılır."
         },
         "contact": {
          "type": "object",
          "description": "contactYazılacak kişi."
         },
         "first_name": {
          "type": "string",
          "description": "Kişinin adı."
         },
         "last_name": {
          "type": "string",
          "description": "Kişinin soyadı."
         },
         "company": {
          "type": "string",
          "description": "Kurum adı. Tek isteğe bağlı alandır."
         },
         "email": {
          "type": "string",
          "description": "Geçerli bir e-posta."
         },
         "phone": {
          "type": "string",
          "description": "Telefon."
         },
         "address": {
          "type": "string",
          "description": "Adres satırı."
         },
         "address2": {
          "type": "string",
          "description": "İkinci adres satırı (daire, kat, blok). Anahtar gönderilmezse sağlayıcıdaki satır korunur; boş metin satırı siler."
         },
         "city": {
          "type": "string",
          "description": "Şehir."
         },
         "state": {
          "type": "string",
          "description": "İl ya da eyalet. Alan adı kişilerinde zorunludur, kayıtlı profillerde değildir."
         },
         "zip": {
          "type": "string",
          "description": "Posta kodu."
         },
         "country": {
          "type": "string",
          "description": "Ülke kodu. Büyük harfe çevrilir."
         },
         "postal_code": {
          "type": "string",
          "description": ""
         }
        },
        "required": [
         "address",
         "city",
         "contact",
         "country",
         "email",
         "first_name",
         "last_name",
         "phone",
         "zip"
        ]
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "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."
       }
      }
     }
    }
   }
  },
  "responses": {
   "Forbidden": {
    "description": "Key lacks the scope, IP not allowed, or feature disabled",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      }
     }
    }
   },
   "Unauthorized": {
    "description": "Missing, invalid or revoked key",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      }
     }
    }
   }
  }
 },
 "security": [
  {
   "bearerAuth": []
  }
 ]
}