|
| 1 | +# hostinger_api.AgencyHostingWordPressApi |
| 2 | + |
| 3 | +All URIs are relative to *https://developers.hostinger.com* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**change_agency_plan_website_word_press_core_version_v1**](AgencyHostingWordPressApi.md#change_agency_plan_website_word_press_core_version_v1) | **PATCH** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/version | Change Agency Plan website WordPress core version |
| 8 | +[**get_agency_plan_website_word_press_settings_v1**](AgencyHostingWordPressApi.md#get_agency_plan_website_word_press_settings_v1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings | Get Agency Plan website WordPress settings |
| 9 | +[**list_available_word_press_versions_for_an_agency_plan_website_v1**](AgencyHostingWordPressApi.md#list_available_word_press_versions_for_an_agency_plan_website_v1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/versions | List available WordPress versions for an Agency Plan website |
| 10 | + |
| 11 | + |
| 12 | +# **change_agency_plan_website_word_press_core_version_v1** |
| 13 | +> CommonSuccessEmptyResource change_agency_plan_website_word_press_core_version_v1(website_uid, agency_hosting_v1_word_press_change_version_request) |
| 14 | +
|
| 15 | +Change Agency Plan website WordPress core version |
| 16 | + |
| 17 | +Changes the installed WordPress core version on an Agency Plan website to one of the versions available for installation. |
| 18 | + |
| 19 | +### Example |
| 20 | + |
| 21 | +* Bearer Authentication (apiToken): |
| 22 | + |
| 23 | +```python |
| 24 | +import hostinger_api |
| 25 | +from hostinger_api.models.agency_hosting_v1_word_press_change_version_request import AgencyHostingV1WordPressChangeVersionRequest |
| 26 | +from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource |
| 27 | +from hostinger_api.rest import ApiException |
| 28 | +from pprint import pprint |
| 29 | + |
| 30 | + |
| 31 | +# Configure Bearer authorization: apiToken |
| 32 | +configuration = hostinger_api.Configuration( |
| 33 | + access_token = os.environ["BEARER_TOKEN"] |
| 34 | +) |
| 35 | + |
| 36 | +# Enter a context with an instance of the API client |
| 37 | +with hostinger_api.ApiClient(configuration) as api_client: |
| 38 | + # Create an instance of the API class |
| 39 | + api_instance = hostinger_api.AgencyHostingWordPressApi(api_client) |
| 40 | + website_uid = 'zpwlGlp19' # str | Agency Plan website UID |
| 41 | + agency_hosting_v1_word_press_change_version_request = hostinger_api.AgencyHostingV1WordPressChangeVersionRequest() # AgencyHostingV1WordPressChangeVersionRequest | |
| 42 | + |
| 43 | + try: |
| 44 | + # Change Agency Plan website WordPress core version |
| 45 | + api_response = api_instance.change_agency_plan_website_word_press_core_version_v1(website_uid, agency_hosting_v1_word_press_change_version_request) |
| 46 | + print("The response of AgencyHostingWordPressApi->change_agency_plan_website_word_press_core_version_v1:\n") |
| 47 | + pprint(api_response) |
| 48 | + except Exception as e: |
| 49 | + print("Exception when calling AgencyHostingWordPressApi->change_agency_plan_website_word_press_core_version_v1: %s\n" % e) |
| 50 | +``` |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | +### Parameters |
| 55 | + |
| 56 | + |
| 57 | +Name | Type | Description | Notes |
| 58 | +------------- | ------------- | ------------- | ------------- |
| 59 | + **website_uid** | **str**| Agency Plan website UID | |
| 60 | + **agency_hosting_v1_word_press_change_version_request** | [**AgencyHostingV1WordPressChangeVersionRequest**](AgencyHostingV1WordPressChangeVersionRequest.md)| | |
| 61 | + |
| 62 | +### Return type |
| 63 | + |
| 64 | +[**CommonSuccessEmptyResource**](CommonSuccessEmptyResource.md) |
| 65 | + |
| 66 | +### Authorization |
| 67 | + |
| 68 | +[apiToken](../README.md#apiToken) |
| 69 | + |
| 70 | +### HTTP request headers |
| 71 | + |
| 72 | + - **Content-Type**: application/json |
| 73 | + - **Accept**: application/json |
| 74 | + |
| 75 | +### HTTP response details |
| 76 | + |
| 77 | +| Status code | Description | Response headers | |
| 78 | +|-------------|-------------|------------------| |
| 79 | +**200** | Success empty response | - | |
| 80 | +**422** | Validation error response | - | |
| 81 | +**401** | Unauthenticated response | - | |
| 82 | +**500** | Error response | - | |
| 83 | + |
| 84 | +[[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) |
| 85 | + |
| 86 | +# **get_agency_plan_website_word_press_settings_v1** |
| 87 | +> AgencyHostingV1WordPressSettingsResource get_agency_plan_website_word_press_settings_v1(website_uid) |
| 88 | +
|
| 89 | +Get Agency Plan website WordPress settings |
| 90 | + |
| 91 | +Returns the current WordPress settings for an Agency Plan website: installed core version, |
| 92 | +LiteSpeed Cache plugin status, object cache status, and maintenance mode status. |
| 93 | + |
| 94 | +### Example |
| 95 | + |
| 96 | +* Bearer Authentication (apiToken): |
| 97 | + |
| 98 | +```python |
| 99 | +import hostinger_api |
| 100 | +from hostinger_api.models.agency_hosting_v1_word_press_settings_resource import AgencyHostingV1WordPressSettingsResource |
| 101 | +from hostinger_api.rest import ApiException |
| 102 | +from pprint import pprint |
| 103 | + |
| 104 | + |
| 105 | +# Configure Bearer authorization: apiToken |
| 106 | +configuration = hostinger_api.Configuration( |
| 107 | + access_token = os.environ["BEARER_TOKEN"] |
| 108 | +) |
| 109 | + |
| 110 | +# Enter a context with an instance of the API client |
| 111 | +with hostinger_api.ApiClient(configuration) as api_client: |
| 112 | + # Create an instance of the API class |
| 113 | + api_instance = hostinger_api.AgencyHostingWordPressApi(api_client) |
| 114 | + website_uid = 'zpwlGlp19' # str | Agency Plan website UID |
| 115 | + |
| 116 | + try: |
| 117 | + # Get Agency Plan website WordPress settings |
| 118 | + api_response = api_instance.get_agency_plan_website_word_press_settings_v1(website_uid) |
| 119 | + print("The response of AgencyHostingWordPressApi->get_agency_plan_website_word_press_settings_v1:\n") |
| 120 | + pprint(api_response) |
| 121 | + except Exception as e: |
| 122 | + print("Exception when calling AgencyHostingWordPressApi->get_agency_plan_website_word_press_settings_v1: %s\n" % e) |
| 123 | +``` |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | +### Parameters |
| 128 | + |
| 129 | + |
| 130 | +Name | Type | Description | Notes |
| 131 | +------------- | ------------- | ------------- | ------------- |
| 132 | + **website_uid** | **str**| Agency Plan website UID | |
| 133 | + |
| 134 | +### Return type |
| 135 | + |
| 136 | +[**AgencyHostingV1WordPressSettingsResource**](AgencyHostingV1WordPressSettingsResource.md) |
| 137 | + |
| 138 | +### Authorization |
| 139 | + |
| 140 | +[apiToken](../README.md#apiToken) |
| 141 | + |
| 142 | +### HTTP request headers |
| 143 | + |
| 144 | + - **Content-Type**: Not defined |
| 145 | + - **Accept**: application/json |
| 146 | + |
| 147 | +### HTTP response details |
| 148 | + |
| 149 | +| Status code | Description | Response headers | |
| 150 | +|-------------|-------------|------------------| |
| 151 | +**200** | Success response | - | |
| 152 | +**401** | Unauthenticated response | - | |
| 153 | +**500** | Error response | - | |
| 154 | + |
| 155 | +[[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) |
| 156 | + |
| 157 | +# **list_available_word_press_versions_for_an_agency_plan_website_v1** |
| 158 | +> List[AgencyHostingV1WordPressVersionResource] list_available_word_press_versions_for_an_agency_plan_website_v1(website_uid) |
| 159 | +
|
| 160 | +List available WordPress versions for an Agency Plan website |
| 161 | + |
| 162 | +Lists the WordPress core versions available for installation on an Agency Plan website. |
| 163 | + |
| 164 | +### Example |
| 165 | + |
| 166 | +* Bearer Authentication (apiToken): |
| 167 | + |
| 168 | +```python |
| 169 | +import hostinger_api |
| 170 | +from hostinger_api.models.agency_hosting_v1_word_press_version_resource import AgencyHostingV1WordPressVersionResource |
| 171 | +from hostinger_api.rest import ApiException |
| 172 | +from pprint import pprint |
| 173 | + |
| 174 | + |
| 175 | +# Configure Bearer authorization: apiToken |
| 176 | +configuration = hostinger_api.Configuration( |
| 177 | + access_token = os.environ["BEARER_TOKEN"] |
| 178 | +) |
| 179 | + |
| 180 | +# Enter a context with an instance of the API client |
| 181 | +with hostinger_api.ApiClient(configuration) as api_client: |
| 182 | + # Create an instance of the API class |
| 183 | + api_instance = hostinger_api.AgencyHostingWordPressApi(api_client) |
| 184 | + website_uid = 'zpwlGlp19' # str | Agency Plan website UID |
| 185 | + |
| 186 | + try: |
| 187 | + # List available WordPress versions for an Agency Plan website |
| 188 | + api_response = api_instance.list_available_word_press_versions_for_an_agency_plan_website_v1(website_uid) |
| 189 | + print("The response of AgencyHostingWordPressApi->list_available_word_press_versions_for_an_agency_plan_website_v1:\n") |
| 190 | + pprint(api_response) |
| 191 | + except Exception as e: |
| 192 | + print("Exception when calling AgencyHostingWordPressApi->list_available_word_press_versions_for_an_agency_plan_website_v1: %s\n" % e) |
| 193 | +``` |
| 194 | + |
| 195 | + |
| 196 | + |
| 197 | +### Parameters |
| 198 | + |
| 199 | + |
| 200 | +Name | Type | Description | Notes |
| 201 | +------------- | ------------- | ------------- | ------------- |
| 202 | + **website_uid** | **str**| Agency Plan website UID | |
| 203 | + |
| 204 | +### Return type |
| 205 | + |
| 206 | +[**List[AgencyHostingV1WordPressVersionResource]**](AgencyHostingV1WordPressVersionResource.md) |
| 207 | + |
| 208 | +### Authorization |
| 209 | + |
| 210 | +[apiToken](../README.md#apiToken) |
| 211 | + |
| 212 | +### HTTP request headers |
| 213 | + |
| 214 | + - **Content-Type**: Not defined |
| 215 | + - **Accept**: application/json |
| 216 | + |
| 217 | +### HTTP response details |
| 218 | + |
| 219 | +| Status code | Description | Response headers | |
| 220 | +|-------------|-------------|------------------| |
| 221 | +**200** | Success response | - | |
| 222 | +**401** | Unauthenticated response | - | |
| 223 | +**500** | Error response | - | |
| 224 | + |
| 225 | +[[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) |
| 226 | + |
0 commit comments