Skip to main content
PATCH
Update Mock Data

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

Body

application/json
payload
object

Input payload data with sample variable values.

tenant_id
string

Tenant ID for preview.

Example:

"default"

is_batch
boolean
default:false

Whether to simulate batched/digest data.

batch_count
integer

Number of batched events to simulate (only relevant when is_batch is true).

Example:

2

recipient_sub_type
enum<string>

Type of recipient.

Available options:
user,
object
Example:

"user"

recipient_distinct_id
string

Distinct ID of the test recipient (when recipient_sub_type is user).

Example:

"user-123"

recipient_object
object

Object identifier (when recipient_sub_type is object).

actor_sub_type
enum<string>

Type of actor.

Available options:
user,
object
actor_distinct_id
string

Distinct ID of the actor user.

actor_object
object

Object identifier for actor.

Response

Mock data updated successfully. Returns the same structure as Get Mock Data - both data (raw config) and transformed_data (resolved values).

The response is of type object.