Settings

Handles default settings for a particular version of a service.

Data model

general.default_hoststringThe default host name for the version.
general.default_ttlintegerThe default time-to-live (TTL) for the version.
general.stale_if_errorbooleanEnables serving a stale object if there is an error. [Default false]
general.stale_if_error_ttlintegerThe default time-to-live (TTL) for serving the stale object for the version. [Default 43200]
service_idstringAlphanumeric string identifying the service. Read-only.
versionintegerInteger identifying a service version. Read-only.

Endpoints

Get service settings

GET/service/service_id/version/version_id/settings

Update service settings

PUT/service/service_id/version/version_id/settings

User contributed notes

BETA

Do you see an error in this page? Do have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact support@fastly.com)