|
|
@@ -39,11 +39,11 @@ To provision a token via the REST API, make a `POST` request to the `/api/users/
|
|
|
$ curl -X POST \
|
|
|
-H "Content-Type: application/json" \
|
|
|
-H "Accept: application/json; indent=4" \
|
|
|
-https://netbox/api/users/tokens/provision/
|
|
|
-{
|
|
|
+https://netbox/api/users/tokens/provision/ \
|
|
|
+--data '{
|
|
|
"username": "hankhill",
|
|
|
"password: "I<3C3H8",
|
|
|
-}
|
|
|
+}'
|
|
|
```
|
|
|
|
|
|
Note that we are _not_ passing an existing REST API token with this request. If the supplied credentials are valid, a new REST API token will be automatically created for the user. Note that the key will be automatically generated, and write ability will be enabled.
|