Skip to main content
PATCH
Discard Variant

Authorizations

Authorization
string
header
required

Pass as Authorization: ServiceToken <token>. You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.

Path Parameters

workspace
string
required
template_slug
string
required
channel
enum<string>
required
Available options:
whatsapp,
sms
variant_id
string
required

Query Parameters

mode
enum<string>
required

Must be live. Approval actions apply to the live version only; if omitted the API defaults to draft and rejects the request.

Available options:
live

Body

application/json
discard_comment
string
required

Reason for discarding the variant.

Maximum string length: 1024
Example:

"Content needs revision before resubmission"

Response

Variant discarded successfully

The response is of type object.