Skip to content

Commit fe7b086

Browse files
authored
Updated Insert user example with scope. (#1316)
The Insert user example is the same as the last example saying it will present a permission error. People reading this will get an error trying what is shown as a positive result example.
1 parent 85bd366 commit fe7b086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rest-framework/getting_started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ Grab your access_token and start using your new OAuth2 API:
187187
curl -H "Authorization: Bearer <your_access_token>" http://localhost:8000/groups/
188188

189189
# Insert a new user
190-
curl -H "Authorization: Bearer <your_access_token>" -X POST -d"username=foo&password=bar" http://localhost:8000/users/
190+
curl -H "Authorization: Bearer <your_access_token>" -X POST -d"username=foo&password=bar&scope=write" http://localhost:8000/users/
191191

192192
Some time has passed and your access token is about to expire, you can get renew the access token issued using the `refresh token`:
193193

0 commit comments

Comments
 (0)