Accelerator

Change the site's speed settings (only the fields sent); applied to the running site with a restart (no rebuild)

patch/projects/{projectId}/accelerator

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/projects/{projectId}/accelerator
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

projectIdstring uuid required

Request body

compressionboolean
browserCachingboolean
edgeCache'off' | 'smart' | 'everything'

off: no shared cache; smart: files, and pages the site marks cacheable (every page of a static site); everything: also pages without cache headers, for visitors without cookies

edgeTtlSecondsinteger
imagesboolean
imageQualityinteger
imageFormat'webp' | 'avif'
imageMaxWidthinteger
cdnboolean

Response

Updated

projectIdstring uuid required
supportedboolean required
staticSiteboolean required
protectedboolean required
updatedAtstring nullable required

ISO-8601 timestamp

Changes

No recorded changes to this operation across all 1 revision of this API.