v2

latestOpenAPI 3.1.12026-07-2613060964.2 KB

Discard Variant

Discard a variant that is in approval-pending state. Only applicable for WhatsApp and SMS channels that require vendor approval. The variant returns to draft state.

patch/v2/{workspace}/template/{template_slug}/channel/{channel}/variant/{variant_id}/discard/

Path parameters

workspacestring required
template_slugstring required
channel'whatsapp' | 'sms' required
variant_idstring required

Query parameters

mode'live'

Request body

commentstring required

Reason for discarding the variant.

Example request

{
  "comment": "Content needs revision before resubmission"
}

Response

Variant discarded successfully

object required