Update Mock Data

Changed on

Update the mock data for a template. Sets the input payload, recipient, tenant, actor, and batching configuration used for previews and testing.

patch/v2/{workspace}/template/{template_slug}/mock_data/

Request

Path parameters

workspacestring required
template_slugstring required

Request body

Example request

{
  "data": {
    "tenant_id": "default",
    "batch_count": 2,
    "recipient_sub_type": "user",
    "recipient_distinct_id": "user-123"
  }
}

Response

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

object required

Changes

    • breaking

      response property detail list-of-types was widened by adding types array and object to media type application/json of response 401

    • breaking

      response property detail list-of-types was widened by adding types array and object to media type application/json of response 404

    • breaking

      removed the success response with the status

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • info

      added the new optional request property

    • info

      added the success response with the status