Start a view of a workspace dataset's files and records

A view of an unpublished dataset's files, records, or both (a type 1
view: its owner's and their runs' in the dataset's workspace only),
built asynchronously. Files (packageIds) are listed at the request,
as the caller, and pinned by package id, size and checksum, never
copied. Records (models) are exported into the view's own storage in
the published layout under metadata/ (every model version's
schema.json and records.jsonl, relationships.csv, codebook.json), and
the view lists the models named, or ["*"] for every model, with the
relationships whole. Answers 202 with the view in state "building";
GET /{viewId} says when it's ready (no state, one version) or
"failed" (with error). Its versions, manifest, entries and files
routes, and the run routes, answer 404 until it's ready. The dataset
is named in the call, dataset_id, and authorized by the dataset
authorizer: the dataset's own organization and the caller's role on
it (reading files or records, as asked) decide, never the workspace
the token is active in. Refused (403) for organizations whose records stay in their own
storage. A workspace source is a view's only source.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required

The dataset's node id (N:dataset:...).

Body Params

Files (packageIds), records (models), or both.

string
required
length ≤ 255
string
length ≤ 2000
models
array of strings, unique
length between 1 and 100

The dataset's models to take, by name, or ["*"] for every model. Each model version's
schema.json and current records.jsonl (as published), with the dataset's
relationships.csv and codebook.json, become entries at their metadata/ paths, and the
crate names them (views:models). A model the dataset doesn't have fails the build.

models
packageIds
array of strings, unique
length ≤ 1000

Packages and folders of the dataset (N📦..., N:collection:...) whose files the
view takes. They are listed at the request, as the caller, through download-service, and
pinned by package id, size and the upload's sha256, never copied: entries at
files/

packageIds
string
enum
Defaults to selection

Where the files land under files/: as picked (a package at its file's name, a file of a
folder picked at its path from that folder) or at their paths in the dataset. Either way
each entry's sourcePath is its path in the dataset.

Allowed:
string
enum

run keeps the view apart from the user's own, for one run's input.

Allowed:
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json