{"name":"site_system_subdomain_connect","title":"Подключить системный поддомен","section":"Адреса и поисковые системы","mode":"write","url":"/tools/site_system_subdomain_connect","blurb":"Привязывает свободное имя на общем домене к выбранному сайту.","aliases":"","kind":"Инструмент","examples":[{"label":"Рабочая задача","prompt":"Если проверенное имя atelier-demo свободно, привяжи его к выбранному сайту. Затем проверь запись в списке доменов.","check":"Привязывает свободное имя на общем домене к выбранному сайту."},{"label":"Подготовить запрос","prompt":"Помоги подготовить вызов site_system_subdomain_connect для задачи «Подключить системный поддомен». Разбери expectedRevision, subdomain и покажи, откуда взять точные значения для выбранного объекта. Остановись на черновике запроса.","check":"Сверить значения со схемой до вызова."},{"label":"После сбоя","prompt":"При выполнении «Подключить системный поддомен» связь прервалась после отправки. Для site_system_subdomain_connect проверь исходный ключ операции и текущее состояние объекта перед решением о повторе.","check":"Сопоставить результат с исходной операцией."}],"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"siteId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,128}$"},"subdomain":{"type":"string","minLength":1,"maxLength":63}},"required":["siteId","expectedRevision","idempotencyKey","subdomain"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"domain":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"availability":{"type":"object","properties":{"subdomain":{"type":"string"},"hostname":{"type":"string"},"url":{"type":"string","format":"uri"},"available":{"type":"boolean"},"state":{"type":"string","enum":["available","reserved","already_connected"]},"domain":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["subdomain","hostname","url","available","state"],"additionalProperties":false},"nextAction":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["domain","availability","nextAction"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}