Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
get_default_settings | GET /service/{service_id}/version/{version_id}/image_optimizer_default_settings | Get current Image Optimizer Default Settings |
update_default_settings | PATCH /service/{service_id}/version/{version_id}/image_optimizer_default_settings | Update Image Optimizer Default Settings |
Retrieve the current Image Optimizer default settings. All properties in the response will be populated.
let cfg = &Configuration::default();
let params = GetDefaultSettingsParams {
// parameters
};
get_default_settings(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] |
crate::models::DefaultSettingsResponse
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to README]
Update one or more default settings. A minimum of one property is required. The endpoint will respond with the new Image Optimizer default settings, with all properties populated.
let cfg = &Configuration::default();
let params = UpdateDefaultSettingsParams {
// parameters
};
update_default_settings(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] | |
default_settings | Option<DefaultSettings> |
crate::models::DefaultSettingsResponse
- Content-Type: application/json
- Accept: application/json, application/problem+json