POST /api/setup-keys Create a Setup Key: "type" field seems to be overhead #1113

Open
opened 2025-11-20 05:24:16 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @alexcupertme on GitHub (Jul 30, 2024).

Describe the problem

When creating new setup key, "type" field doesn't really matter if we can specify usage_limit to 1

To Reproduce

Steps to reproduce the behavior:

  1. Make an API request POST /api/setup-keys with payload
{
  "name": "Default key",
  "type": "reusable",
  "expires_in": 86400,
  "revoked": true,
  "usage_limit": 1,
  "ephemeral": false
}

Expected behavior

To not specify unnecessary field

Are you using NetBird Cloud?

No

NetBird version

CLI ver 0.28.6
netbirdio/management latest 089367492c59
netbirdio/signal latest 4cb11eea59d8
netbirdio/dashboard latest 422e7e788e47

NetBird status -d output:

Screenshots

Additional context

Originally created by @alexcupertme on GitHub (Jul 30, 2024). **Describe the problem** When creating new setup key, "type" field doesn't really matter if we can specify usage_limit to 1 **To Reproduce** Steps to reproduce the behavior: 1. Make an API request POST /api/setup-keys with payload ``` { "name": "Default key", "type": "reusable", "expires_in": 86400, "revoked": true, "usage_limit": 1, "ephemeral": false } ``` **Expected behavior** To not specify unnecessary field **Are you using NetBird Cloud?** No **NetBird version** CLI ver 0.28.6 netbirdio/management latest 089367492c59 netbirdio/signal latest 4cb11eea59d8 netbirdio/dashboard latest 422e7e788e47 **NetBird status -d output:** - **Screenshots** - **Additional context** -
saavagebueno added the enhancementapi labels 2025-11-20 05:24:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1113