Export a Notebook

GET /api/v1.2/notebooks/note_id/export

Use this API to export a notebook in the JSON format.

Required Role

The following users can make this API call:

  • Users who belong to the system-user or system-admin group.

Parameters

Note

Parameters marked in bold below are mandatory. Others are optional and have default values.

Parameter Description
note_id Id of the notebook that has to be exported.

Request API Syntax

curl -X GET  -H 'X-AUTH-TOKEN: <AUTH TOKEN>'  -H 'Content-Type: application/json'  -H 'Accept: application/json'
"https://api.qubole.com/api/v1.2/notebooks/<note_id>/export"

Note

The above syntax uses https://api.qubole.com as the endpoint. Qubole provides other endpoints to access QDS that are described in Supported Qubole Endpoints on Different Cloud Providers.

Sample API Request

Here is an example to export a Spark notebook.

curl -X GET  -H 'X-AUTH-TOKEN: <AUTH TOKEN>'  -H 'Content-Type: application/json'  -H 'Accept: application/json'
"https://api.qubole.com/api/v1.2/notebooks/26962/export"