Close Notebook (Notebook)

URL:
https://<root>notebooks/<notebookID>/closeNotebook
Methods:
POST
Required Capability:
Access allowed with "Create and edit notebooks" privilege
Version Introduced:
11.4

Description

The closeNotebook operation stops a running notebook.

Idle notebooks are automatically cleaned up according to the duration defined by the idleNotebookThreshold property in Notebook Configurations. The default value for that property is 12 hours.

Request parameters

ParameterDetails

f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

The following is a sample POST request for the closeNotebook operation.

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /context/admin/notebooks/7f64ace427684e90a8397a5e476a4190/closeNotebook HTTP/1.1
Host: organization.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: [ ]

f=pjson&token=<token>

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
{
  "status": "<success | failure>"
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
{
  "status": "success"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.