Below are the various requests that can be performed against the
Notebook resource, as well as the expected
parameters and the potential responses.
Cancel Execution
Marks a specific notebook execution for cancellation
Method And Url
POST https://api.app.wnology.io/applications/APPLICATION_ID/notebooks/NOTEBOOK_ID/cancelExecution
Authentication
A valid api access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Organization, all.User, notebook.*, or notebook.execute.
Request Path Components
Path Component
Description
Example
APPLICATION_ID
ID associated with the application
575ec8687ae143cd83dc4a97
NOTEBOOK_ID
ID associated with the notebook
575ed78e7ae143cd83dc4aab
Request Query Parameters
Name
Required
Description
Default
Example
executionId
Y
The ID of the execution to cancel
executionId=632e18632f59592e773a4153
Request Headers
Name
Required
Description
Default
Authorization
Y
The token for authenticating the request, prepended with Bearer
Curl Example
curl-H'Content-Type: application/json'\-H'Accept: application/json'\-H'Authorization: Bearer YOUR_API_ACCESS_TOKEN'\-X POST \
https://api.app.wnology.io/applications/APPLICATION_ID/notebooks/NOTEBOOK_ID/cancelExecution?executionId=632e18632f59592e773a4153
A valid api access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Organization, all.User, notebook.*, or notebook.delete.
Request Path Components
Path Component
Description
Example
APPLICATION_ID
ID associated with the application
575ec8687ae143cd83dc4a97
NOTEBOOK_ID
ID associated with the notebook
575ed78e7ae143cd83dc4aab
Request Headers
Name
Required
Description
Default
Authorization
Y
The token for authenticating the request, prepended with Bearer
POST https://api.app.wnology.io/applications/APPLICATION_ID/notebooks/NOTEBOOK_ID/execute
Authentication
A valid api access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Organization, all.User, notebook.*, or notebook.execute.
Request Path Components
Path Component
Description
Example
APPLICATION_ID
ID associated with the application
575ec8687ae143cd83dc4a97
NOTEBOOK_ID
ID associated with the notebook
575ed78e7ae143cd83dc4aab
Request Headers
Name
Required
Description
Default
Authorization
Y
The token for authenticating the request, prepended with Bearer
Request Body
The body of the request should be serialized JSON that validates against
the Notebook Execution Options schema. For example, the following would be a
valid body for this request:
{"relativeTo":1570549199451}
Curl Example
curl-H'Content-Type: application/json'\-H'Accept: application/json'\-H'Authorization: Bearer YOUR_API_ACCESS_TOKEN'\-X POST \-d'{"relativeTo":1570549199451}'\
https://api.app.wnology.io/applications/APPLICATION_ID/notebooks/NOTEBOOK_ID/execute
GET https://api.app.wnology.io/applications/APPLICATION_ID/notebooks/NOTEBOOK_ID
Authentication
A valid api access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, notebook.*, or notebook.get.
Request Path Components
Path Component
Description
Example
APPLICATION_ID
ID associated with the application
575ec8687ae143cd83dc4a97
NOTEBOOK_ID
ID associated with the notebook
575ed78e7ae143cd83dc4aab
Request Headers
Name
Required
Description
Default
Authorization
Y
The token for authenticating the request, prepended with Bearer
Curl Example
curl-H'Content-Type: application/json'\-H'Accept: application/json'\-H'Authorization: Bearer YOUR_API_ACCESS_TOKEN'\-X GET \
https://api.app.wnology.io/applications/APPLICATION_ID/notebooks/NOTEBOOK_ID
GET https://api.app.wnology.io/applications/APPLICATION_ID/notebooks/NOTEBOOK_ID/logs
Authentication
A valid api access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, notebook.*, or notebook.logs.
Request Path Components
Path Component
Description
Example
APPLICATION_ID
ID associated with the application
575ec8687ae143cd83dc4a97
NOTEBOOK_ID
ID associated with the notebook
575ed78e7ae143cd83dc4aab
Request Query Parameters
Name
Required
Description
Default
Example
limit
N
Max log entries to return (ordered by time descending)
1
limit=10
since
N
Look for log entries since this time (ms since epoch)
since=1465790400000
Request Headers
Name
Required
Description
Default
Authorization
Y
The token for authenticating the request, prepended with Bearer
Curl Example
curl-H'Content-Type: application/json'\-H'Accept: application/json'\-H'Authorization: Bearer YOUR_API_ACCESS_TOKEN'\-X GET \
https://api.app.wnology.io/applications/APPLICATION_ID/notebooks/NOTEBOOK_ID/logs
Returns notebook execution usage by day for the time range specified for this notebook
Method And Url
GET https://api.app.wnology.io/applications/APPLICATION_ID/notebooks/NOTEBOOK_ID/notebookMinuteCounts
Authentication
A valid api access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, notebook.*, or notebook.notebookMinuteCounts.
Request Path Components
Path Component
Description
Example
APPLICATION_ID
ID associated with the application
575ec8687ae143cd83dc4a97
NOTEBOOK_ID
ID associated with the notebook
575ed78e7ae143cd83dc4aab
Request Query Parameters
Name
Required
Description
Default
Example
start
N
Start of range for notebook execution query (ms since epoch)
start=0
end
N
End of range for notebook execution query (ms since epoch)
end=1465790400000
Request Headers
Name
Required
Description
Default
Authorization
Y
The token for authenticating the request, prepended with Bearer
Curl Example
curl-H'Content-Type: application/json'\-H'Accept: application/json'\-H'Authorization: Bearer YOUR_API_ACCESS_TOKEN'\-X GET \
https://api.app.wnology.io/applications/APPLICATION_ID/notebooks/NOTEBOOK_ID/notebookMinuteCounts
A valid api access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Organization, all.User, notebook.*, or notebook.patch.
Request Path Components
Path Component
Description
Example
APPLICATION_ID
ID associated with the application
575ec8687ae143cd83dc4a97
NOTEBOOK_ID
ID associated with the notebook
575ed78e7ae143cd83dc4aab
Request Headers
Name
Required
Description
Default
Authorization
Y
The token for authenticating the request, prepended with Bearer
Request Body
The body of the request should be serialized JSON that validates against
the Notebook Patch schema. For example, the following would be a
valid body for this request:
Requests a combined zip file of the potential input data for a notebook execution
Method And Url
POST https://api.app.wnology.io/applications/APPLICATION_ID/notebooks/NOTEBOOK_ID/requestInputDataExport
Authentication
A valid api access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, notebook.*, or notebook.requestInputDataExport.
Request Path Components
Path Component
Description
Example
APPLICATION_ID
ID associated with the application
575ec8687ae143cd83dc4a97
NOTEBOOK_ID
ID associated with the notebook
575ed78e7ae143cd83dc4aab
Request Headers
Name
Required
Description
Default
Authorization
Y
The token for authenticating the request, prepended with Bearer
Request Body
The body of the request should be serialized JSON that validates against
the Notebook Data Export Options schema. For example, the following would be a
valid body for this request:
{"email":"user@example.com"}
Curl Example
curl-H'Content-Type: application/json'\-H'Accept: application/json'\-H'Authorization: Bearer YOUR_API_ACCESS_TOKEN'\-X POST \-d'{"email":"user@example.com"}'\
https://api.app.wnology.io/applications/APPLICATION_ID/notebooks/NOTEBOOK_ID/requestInputDataExport
POST https://api.app.wnology.io/applications/APPLICATION_ID/notebooks/NOTEBOOK_ID/upload
Authentication
A valid api access token is required to access this endpoint. The token must
include at least one of the following scopes:
all.Application, all.Organization, all.User, notebook.*, or notebook.upload.
Request Path Components
Path Component
Description
Example
APPLICATION_ID
ID associated with the application
575ec8687ae143cd83dc4a97
NOTEBOOK_ID
ID associated with the notebook
575ed78e7ae143cd83dc4aab
Request Headers
Name
Required
Description
Default
Authorization
Y
The token for authenticating the request, prepended with Bearer
Request Body
The body of the request should be a multipart form data post containing the following:
Name
Required
Description
Default
Example
jupyterFile
Y
The jupyter notebook file
Curl Example
curl-H'Content-Type: multipart/form-data'\-H'Accept: application/json'\-H'Authorization: Bearer YOUR_API_ACCESS_TOKEN'\-X POST \-FjupyterFile=@localfilename' \
https://api.app.wnology.io/applications/APPLICATION_ID/notebooks/NOTEBOOK_ID/upload