Typo in docs/rest-api/authentication #7932

Closed
opened 2025-12-29 20:30:10 +01:00 by adam · 0 comments
Owner

Originally created by @Janik-Haag on GitHub (Apr 21, 2023).

Change Type

Correction

Area

Integrations/API

Proposed Changes

Currently there is this command:

$ curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json; indent=4" \
https://netbox/api/users/tokens/provision/ \
--data '{
    "username": "hankhill",
    "password": "I<3C3H8",
}'

which should be changed to this

$ curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json; indent=4" \
https://netbox/api/users/tokens/provision/ \
--data '{
    "username": "hankhill",
    "password": "I<3C3H8"
}'

because other wise curl throws this error:

{
    "detail": "JSON parse error - Expecting property name enclosed in double quotes: line 4 column 1 (char 52)"
}                          
Originally created by @Janik-Haag on GitHub (Apr 21, 2023). ### Change Type Correction ### Area Integrations/API ### Proposed Changes Currently there is this command: ```bash $ curl -X POST \ -H "Content-Type: application/json" \ -H "Accept: application/json; indent=4" \ https://netbox/api/users/tokens/provision/ \ --data '{ "username": "hankhill", "password": "I<3C3H8", }' ``` which should be changed to this ```bash $ curl -X POST \ -H "Content-Type: application/json" \ -H "Accept: application/json; indent=4" \ https://netbox/api/users/tokens/provision/ \ --data '{ "username": "hankhill", "password": "I<3C3H8" }' ``` because other wise curl throws this error: ``` { "detail": "JSON parse error - Expecting property name enclosed in double quotes: line 4 column 1 (char 52)" } ```
adam added the status: acceptedtype: documentation labels 2025-12-29 20:30:10 +01:00
adam closed this issue 2025-12-29 20:30:10 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7932