DevZero Logo
DevZero

Create a network key for a specific network

POST
/teams/{team_id}/networks/{network_id}/network-key
/teams/{team_id}/networks/{network_id}/network-key

Request Body

application/jsonRequired

create network key for team body

aclTagsarray<string>

acl tags

ephemeralboolean

should this node be removed once inactive

expirationstring

when should this key expire? (RFC3339 format)

Format: "date-time"

namestring

Name of the key

reusableboolean

can this key be used to authenticate more than one node

Path Parameters

team_id
Required
string

network_id
Required
string

Header Parameters

Authorization
Required
string

curl -X POST "https://api.devzero.io/backend/v0/teams/string/networks/string/network-key" \
  -H "Authorization: string" \
  -H "Content-Type: application/json" \
  -d '{
    "aclTags": [
      "string"
    ],
    "ephemeral": true,
    "expiration": "2019-08-24T14:15:22Z",
    "name": "string",
    "reusable": true
  }'

OK

{
  "ephemeral": true,
  "expiration": "2019-08-24T14:15:22Z",
  "key": "string",
  "name": "string",
  "reusable": true
}