Skip to main content
POST
Truncate Dataset

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dataset_id
integer<int64>
required
Example:

18923

Body

application/json
compute_pool_id
string<uuid>

The compute pool that runs the job that deletes the rows. Defaults to the dataset's default compute pool, then the company's default for the data plane, then the data plane's default. Datasets on an AWS data plane, including Narrative's, need a pool from one of them.

Example:

"3f1c2b6e-9d4a-4c8e-b2f1-7a6d5e4c3b2a"

Response

TruncateDataset 202 response

dataset
object
required

A dataset.

The encoder drops nulls and empty collections, so an optional field is absent rather than null, and tags and mappings are absent rather than [] when there are none. DatasetAdminResponse composes this schema with allOf but encodes without that step, so on the admin endpoints the same optional fields arrive as null. Either way they are optional, and both shapes validate.

Example:
workflow_id
string<uuid>
required

The id of the workflow that deletes the dataset's rows and clears its statistics.

Example:

"6b0f2c8e-3d1a-4e5b-9c7d-2a4f6e8b0c1d"