---
title: "POST /api/v1/hosting/apps/{app_id}/cdns/{id}/purge"
method: POST
path: "/api/v1/hosting/apps/{app_id}/cdns/{id}/purge"
tags: ["hosting"]
---

# POST /api/v1/hosting/apps/{app_id}/cdns/{id}/purge

`POST /api/v1/hosting/apps/{app_id}/cdns/{id}/purge`

## Request

- Base URL: `https://composal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://composal.com/api/v1/hosting/apps/{app_id}/cdns/{id}/purge`
- Auth: HTTP bearer

## Path parameters

- `app_id` string, required
- `id` string, required

## Request body

- AppCdnPurgePayload
  - `source_ref` string
  - `commit_sha` string
  - `urls` string[]
  - `purge_urls` string[]

## Response `200`

App CDN deployment action completed

- object
  - `deployment` AppCdnDeployment, required
    - `id` string, required
    - `app_cdn_distribution_id` string, required
    - `creator_user_id` string, nullable, required
    - `status` 'queued' | 'deploying' | 'active' | 'failed' | 'canceled', required
    - `action_kind` 'provision' | 'reconfigure' | 'hostname_sync' | 'purge_all' | 'purge_urls', required
    - `trigger_kind` 'manual' | 'push' | 'schedule' | 'api' | 'rollback', required
    - `source_ref` string, nullable, required
    - `commit_sha` string, nullable, required
    - `purge_urls` string[], required
    - `failure_message` string, nullable, required
    - `started_at` string, date-time, nullable, required
    - `finished_at` string, date-time, nullable, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `started_at_label` string, nullable, required
    - `finished_at_label` string, nullable, required
    - `created_at_label` string, nullable, required
    - `updated_at_label` string, nullable, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `422`: CDN request failed validation
- `502`: Bad gateway

---

[API](https://skmtc.dev/composal/apis/vex-api.md) - [All operations](https://skmtc.dev/composal/apis/vex-api/llms.txt) - [OpenAPI document](https://skmtc.dev/composal/apis/vex-api/revisions/74298a24e040?raw)
