Assign a libref

post/sessions/{sessionId}/data
Internal-Use Only

Assigns a libref that is based on the request body for a session. The Location header contains the URI of the libref resource.

Request Samples

1

Response Samples

1No example avaliable

Path Parameters

NameTypeRequiredDescription
sessionId
string<object-id>
true

Specifies the ID of the session.

Request Body

Specifies a libref assignment request.

Assigns a new library or libref.

Example:
{"version":1,"name":"mylib","path":"/u/myuser/mylibrary","engine":"BASE","options":[""]}
NameTypeRequiredDescription
name
string
true

Specifies the name of the library to assign.

engine
string
true

Specifies the engine to use with this library.

path
string
true

Specifies the engine-specific path information for this library.

options
array [string]
false

Specifies options that the engine uses.

Responses

StatusMeaningDescription
201CreatedA libref was created.Headers
400Bad RequestThe request was invalid.Schema
404Not FoundNo resource exists at the requested path.Schema