Skip to main content
PATCH
/
v2
/
{workspace}
/
template
/
{template_slug}
/
channel
/
{channel}
/
variant
/
{variant_id}
/
discard
Discard Variant
curl -X PATCH "https://management-api.suprsend.com/v2/{workspace}/template/{template_slug}/channel/{channel}/variant/{variant_id}/discard/?mode=live" \
  --header 'Authorization: ServiceToken <token>' \
  --header 'Content-Type: application/json' \
  --data '{"comment": "Content needs revision"}'
{}

Authorizations

ServiceToken <token>
string
header
required

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>
default:live
Available options:
live

Body

application/json
comment
string
required

Reason for discarding the variant.

Example:

"Content needs revision before resubmission"

Response

Variant discarded successfully

The response is of type object.