Environments

Purge edge cache

Purge the edge cache for all domains associated with the environment.

By default everything cached for the environment is purged. Optionally provide a path, prefix, or tag to purge a subset of the cache. Only one of these may be provided per request.

post/environments/{environment}/purge-edge-cache

Request

  • Base URL
    https://cloud.laravel.com/api
  • Auth
    HTTP bearer

Path parameters

environmentstring required

The environment identifier

Request body

pathstring nullable

A single path to purge, resolved against every hostname the environment is served from.

prefixstring nullable

A path prefix to purge, resolved against every hostname the environment is served from.

tagstring nullable

A Cache-Tag value to purge. Requires the environment to use a dedicated edge network.

Example request

{
  "path": "/blog/hello-world",
  "prefix": "/blog/",
  "tag": "blog-posts"
}

Response

EnvironmentResource

Changes

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