{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To purge cached content from a CDN endpoint, send a DELETE request to\n`/v2/cdn/endpoints/$ENDPOINT_ID/cache`. The body of the request should include\na `files` attribute containing a list of cached file paths to be purged. A\npath may be for a single file or may contain a wildcard (`*`) to recursively\npurge all files under a directory. When only a wildcard is provided, all cached \nfiles will be purged. There is a rate limit of 50 files per 20 seconds that can \nbe purged. CDN endpoints have a rate limit of 5 requests per 10 seconds. \nPurging files using a wildcard path counts as a single request against the API's \nrate limit. Two identical purge requests cannot be sent at the same time.\n","properties":{"path":{"type":"object","properties":{"cdn_id":{"type":"string","format":"uuid","minimum":1,"examples":["19f06b6a-3ace-4315-b086-499a0e521b76"],"description":"A unique identifier for a CDN endpoint."}},"required":["cdn_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/purge_cache"}},"required":["path","body"],"additionalProperties":false,"definitions":{"purge_cache":{"type":"object","properties":{"files":{"type":"array","items":{"type":"string"},"description":"An array of strings containing the path to the content to be purged from the CDN cache.","examples":[["path/to/image.png","path/to/css/*"]]}},"required":["files"]}}},"name":"Purge the Cache for an Existing CDN Endpoint","id":"digitalocean.cdn_purge_cache","example":{"path":{"cdn_id":"19f06b6a-3ace-4315-b086-499a0e521b76"},"body":{"files":["path/to/image.png","path/to/css/*"]}},"maxRequests":1,"summary":false}}