Skip to main content
POST
Create Slice
Click for Python SDK
This endpoint creates a Slice of DatasetItems within a Dataset. Pass a list of reference IDs (up to 10,000 items) to add to the slice; if no reference IDs are given, an empty slice is created.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

dataset_id
string
required

The Scale-generated ID of the Dataset.

Body

application/json
name
string
required

Human-readable name of the Slice.

reference_ids
string[]
required

Array of user-specified reference IDs pertaining to the items to include in the Slice.

Response

200

slice_id
string
Example:

"slc_bx86ea222a6g057x4380"