Update Default Template

URL:
https://<root>/notebooks/updateDefaultTemplate
Methods:
POST
Required Capability:
Access allowed with either the "Create and edit notebooks", "Servers", or "Security and infrastructure" privileges
Version Introduced:
11.4

Description

The updateDefaultTemplate operation allows the default notebook template that is provided with ArcGIS Notebook Server to be updated and changed to a new, custom template.

Request parameters

ParameterDetails

defaultNotebook

The new custom notebook file that will replace the default template. All template files must be saved in the JSON IPYNB format.

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 updateDefaultTemplate operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
POST /context/admin/notebooks/updateDefaultTemplate HTTP/1.1
Host: organization.domain.com
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryyR8RvMCXwbfEssVF
Content-Length: []

------WebKitFormBoundaryyR8RvMCXwbfEssVF
Content-Disposition: form-data; name="defaultNotebook"; filename="a9ce0a888c2e45a79a888e28b1ef2cab.ipynb"
Content-Type: application/octet-stream


------WebKitFormBoundaryyR8RvMCXwbfEssVF
Content-Disposition: form-data; name="f"

pjson

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.