Update the API token provisioning example #9414

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

Originally created by @markkuleinio on GitHub (Mar 29, 2024).

Originally assigned to: @markkuleinio on GitHub.

Change Type

Correction

Area

Integrations/API

Proposed Changes

In https://docs.netbox.dev/en/stable/integrations/rest-api/#initial-token-provisioning:

{
    "id": 6,
    "url": "https://netbox/api/users/tokens/6/",
    "display": "3c9cb9 (hankhill)",
    "user": {
        "id": 2,
        "url": "https://netbox/api/users/users/2/",
        "display": "hankhill",
        "username": "hankhill"
    },
    "created": "2021-06-11T20:09:13.339367Z",
    "expires": null,
    "key": "9fc9b897abec9ada2da6aec9dbc34596293c9cb9",
    "write_enabled": true,
    "description": ""
}

Current output in NetBox 3.7.4:

{
    "id": 1,
    "url": "https://netbox/api/users/tokens/1/",
    "display": "**********************************3c9cb9",
    "user": {
        "id": 2,
        "url": "https://netbox/api/users/users/2/",
        "display": "hankhill",
        "username": "hankhill"
    },
    "created": "2024-03-29T19:23:16.307642Z",
    "expires": null,
    "last_used": null,
    "key": "9fc9b897abec9ada2da6aec9dbc34596293c9cb9",
    "write_enabled": true,
    "description": "",
    "allowed_ips": []
}
Originally created by @markkuleinio on GitHub (Mar 29, 2024). Originally assigned to: @markkuleinio on GitHub. ### Change Type Correction ### Area Integrations/API ### Proposed Changes In https://docs.netbox.dev/en/stable/integrations/rest-api/#initial-token-provisioning: ```json { "id": 6, "url": "https://netbox/api/users/tokens/6/", "display": "3c9cb9 (hankhill)", "user": { "id": 2, "url": "https://netbox/api/users/users/2/", "display": "hankhill", "username": "hankhill" }, "created": "2021-06-11T20:09:13.339367Z", "expires": null, "key": "9fc9b897abec9ada2da6aec9dbc34596293c9cb9", "write_enabled": true, "description": "" } ``` Current output in NetBox 3.7.4: ```json { "id": 1, "url": "https://netbox/api/users/tokens/1/", "display": "**********************************3c9cb9", "user": { "id": 2, "url": "https://netbox/api/users/users/2/", "display": "hankhill", "username": "hankhill" }, "created": "2024-03-29T19:23:16.307642Z", "expires": null, "last_used": null, "key": "9fc9b897abec9ada2da6aec9dbc34596293c9cb9", "write_enabled": true, "description": "", "allowed_ips": [] } ```
adam added the status: acceptedtype: documentation labels 2025-12-29 20:49:29 +01:00
adam closed this issue 2025-12-29 20:49:29 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9414