mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-20 01:16:36 +00:00
add quickstart for api
This commit is contained in:
@@ -18,7 +18,7 @@ export const title = 'Accounts'
|
||||
```bash {{ title: 'cURL' }}
|
||||
curl -X GET https://api.netbird.io/api/accounts \
|
||||
-H 'Accept: application/json' \
|
||||
-H "Authorization: Token <TOKEN>"
|
||||
-H 'Authorization: Token <TOKEN>'
|
||||
```
|
||||
|
||||
```js
|
||||
@@ -237,7 +237,7 @@ echo $response;
|
||||
curl -X PUT https://api.netbird.io/api/accounts/{accountId} \
|
||||
-H 'Accept: application/json' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-H "Authorization: Token <TOKEN>" \
|
||||
-H 'Authorization: Token <TOKEN>' \
|
||||
--data-raw '{
|
||||
"peer_login_expiration_enabled": true,
|
||||
"peer_login_expiration": 43200
|
||||
|
||||
Reference in New Issue
Block a user