Assign a libref
post/sessions/{sessionId}/data
Assigns a libref that is based on the request body for a session. The Location header contains the URI of the libref resource.
Name | Type | Required | Description |
---|---|---|---|
sessionId | string<object-id> | true | Specifies the ID of the session. |
Specifies a libref assignment request.
Assigns a new library or libref.
Example:
{"version":1,"name":"mylib","path":"/u/myuser/mylibrary","engine":"BASE","options":[""]}
Name | Type | Required | Description |
---|---|---|---|
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. |
Status | Meaning | Description | ||
---|---|---|---|---|
201 | Created | A libref was created. | Headers | |
400 | Bad Request | The request was invalid. | Schema | |
404 | Not Found | No resource exists at the requested path. | Schema |