From 126c73002e970f08be3eabf56bccf4d5e85c59fe Mon Sep 17 00:00:00 2001 From: Joshua Milas Date: Sat, 21 Oct 2017 09:18:08 -0400 Subject: [PATCH] Updated the rest docs to about change in 0.8 In 0.8, the jupyterhub api token can also be used to make requests to hte jupyter notebook given some conditions. This commit updates that documentation --- docs/source/reference/rest.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/source/reference/rest.md b/docs/source/reference/rest.md index d5f89c3f..a18bc58a 100644 --- a/docs/source/reference/rest.md +++ b/docs/source/reference/rest.md @@ -114,10 +114,12 @@ r.raise_for_status() r.json() ``` -Note that the API token authorizes **JupyterHub** REST API requests. The same -token does **not** authorize access to the [Jupyter Notebook REST API][] -provided by notebook servers managed by JupyterHub. A different token is used -to access the **Jupyter Notebook** API. +The same API token can also authorize access to the [Jupyter Notebook REST API][] +provided by notebook servers managed by JupyterHub. +To do so, the following must be true: + +1. The token used is tied to an admin user or service +2. `c.JupyterHub.admin_access` must be set to `True` ## Enabling users to spawn multiple named-servers via the API