You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit da3e01e
Browse filesBrowse the repository at this point in the historyBrowse files
**is_template** | **bool** | Set to true to publish the website as a template: its published pages show a \"Use template\" banner that copies the website into the visitor's own account. Set to false to remove the banner. Leave it out to keep the current setting. | [optional]
9
+
10
+
## Example
11
+
12
+
```python
13
+
from hostinger_api.models.horizons_v1_websites_publish_website_request import HorizonsV1WebsitesPublishWebsiteRequest
14
+
15
+
#TODO update the JSON string below
16
+
json ="{}"
17
+
# create an instance of HorizonsV1WebsitesPublishWebsiteRequest from a JSON string
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
**website_url** | **str** | The website URL for the user to access their website in Hostinger Horizons interface |
9
+
**published_at** | **datetime** | When the website was last published, or null if it has never been published | [optional]
10
+
**is_template** | **bool** | Whether the website is published as a template, so its published pages show a \"Use template\" banner | [optional]
11
+
**is_in_progress** | **bool** | Whether Hostinger Horizons is still generating changes or publishing the website. Publishing is refused while it is true, and editing while changes are being generated. An unfinished template migration also refuses publishing, with its own error, without setting this flag. | [optional]
12
+
**has_ecommerce_store** | **bool** | Whether the website has an ecommerce store | [optional]
Copy file name to clipboardExpand all lines: docs/HorizonsWebsitesApi.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -356,6 +356,10 @@ Get website
356
356
Get the link for the user to open their website in Hostinger Horizons interface.\n
357
357
Use this tool when the user wants the link to an existing website, or when you need its
358
358
website URL before or after editing it.\n
359
+
`is_in_progress` is true while changes are being generated or the website is being published;
360
+
wait until it is false before publishing. `published_at` is when the website was last published,
361
+
`is_template` is whether its published pages show the "Use template" banner, and
362
+
`has_ecommerce_store` is whether it has an online store.\n
359
363
Websites can be edited with the `Edit website` tool, or by the user in Hostinger Horizons
360
364
interface in the provided website URL.
361
365
@@ -423,14 +427,17 @@ Name | Type | Description | Notes
423
427
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
0 commit comments