Add a view to a running notebook session

Records a dataset view added to the run's notebook session after it
started (the session's "Add data"), as the input folder named. The
run's callback token may then read that view through views-service's
run routes, which serve only the run's views: its viewVersion data
sources and the views recorded here. The caller must be the run's
creator with their own bearer token: a callback token is refused
(401) whether it comes as X-Callback-Token or as the Authorization
header, since its reach is what this route widens. The view must
be theirs (checked with views-service), and the run must be an
active notebook session. A view of a workspace's data is added only
to a session in that workspace, and its datasets must be ones the
caller can read there (403 otherwise); they are recorded on the
source so the run's callback token reads them, as a reader.

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

The uuid of the execution run

Body Params
string
required

The session's input folder the view is staged in (letters, digits, '.', '_', '-').

uuid
required
integer
required
≥ 1
Responses
201

The source as recorded (name, viewId, viewVersion, addedAt).

400

Bad request

401

Not a signed-in user (a callback token can't add sources)

403

Not the run's creator

404

The run, or the view (not found or not the caller's)

409

The run isn't an active notebook session

502

views-service couldn't be asked

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!