Skip to content
Discussion options

You must be logged in to vote

Well, works here as documented:

$ curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json; indent=4" \
http://netbox-test.lein.io/api/users/tokens/provision/ \
--data '{
    "username": "just_created_user",
    "password": "test"
}'
( This is the response: )
{
    "id": 1,
    "url": "http://netbox-test.lein.io/api/users/tokens/1/",
    "display": "185225b3956b5a208321f8203dc36b1a8e05de0b",
    "user": {
        "id": 2,
        "url": "http://netbox-test.lein.io/api/users/users/2/",
        "display": "just_created_user",
        "username": "just_created_user"
    },
    "created": "2024-03-29T19:23:16.307642+02:00",
    "expires": null,
    "last_used": null,
…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@Vlador15
Comment options

@markkuleinio
Comment options

Answer selected by Vlador15
Comment options

You must be logged in to vote
1 reply
@Vlador15
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants