2
0
Эх сурвалжийг харах

Fixes #15583: Update API token provisioning example response (#15584)

* Fixes #15583: Update API token provisioning example response

* Fix 'display' field output
Markku Leiniö 1 жил өмнө
parent
commit
d285edc0c7

+ 5 - 3
docs/integrations/rest-api.md

@@ -647,18 +647,20 @@ Note that we are _not_ passing an existing REST API token with this request. If
 {
     "id": 6,
     "url": "https://netbox/api/users/tokens/6/",
-    "display": "3c9cb9 (hankhill)",
+    "display": "**********************************3c9cb9",
     "user": {
         "id": 2,
         "url": "https://netbox/api/users/users/2/",
         "display": "hankhill",
         "username": "hankhill"
     },
-    "created": "2021-06-11T20:09:13.339367Z",
+    "created": "2024-03-11T20:09:13.339367Z",
     "expires": null,
+    "last_used": null,
     "key": "9fc9b897abec9ada2da6aec9dbc34596293c9cb9",
     "write_enabled": true,
-    "description": ""
+    "description": "",
+    "allowed_ips": []
 }
 ```