Skip to content

Commit

Permalink
EOEPCA-969 #comment added a section to the doc about group creation
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrauzzi committed Sep 6, 2023
1 parent bc3a8fa commit bd30c3f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/jupyterhub-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ verify=False)
r.json()
```

### Create group

```python
import requests

endpoint = "https://app-hub.acme.com/hub/api"
token = "d...8"

headers = {'Content-Type': 'application/json', 'Authorization': f'Bearer {token}'}

group = 'group-a'

r = requests.post(f"{endpoint}/groups/{group}", headers=headers, verify=False)
r.status_code
r.json()
```

### Add user to group


Expand Down

0 comments on commit bd30c3f

Please sign in to comment.