Skip to main content

Edit Network

PUT 

https://api.defined.net/v1/networks/:networkID

Edit an existing network.

Token scope required: networks:update

caution

Any properties not provided in the request will be reset to their default values.

Request

Path Parameters

    networkID stringrequired
    Example: network-ZJOW3QUQUX5ZAVPVYRHDQUAEIY

Bodyrequired

    namestringrequired

    Name of the network

    Possible values: non-empty and <= 50 characters

    Example: Management
    descriptionstring

    Optional description of the network

    Example: This network allows the ops team to manage infrastructure
    lighthousesAsRelaysboolean

    Should the lighthouses in this network be configured as relays?

    Example: false

Responses

Successful operation

Schema
    data object
    idstring
    cidripv4/cidr
    organizationIDstring
    signingCAIDstring

    The ID of the Certificate Authority being used.

    createdAtdate-time
    namestring
    Default value: Network1
    lighthousesAsRelaysboolean
    curvestring

    Possible values: [25519, P256]

    metadataobject

Authorization: http

name: ApiTokentype: httpdescription: Get an api key from https://admin.defined.net/settings/api-keys with the permission scopes required.
scheme: bearerbearerFormat: dnkey
curl -L -X PUT 'https://api.defined.net/v1/networks/:networkID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"name": "Management",
"description": "This network allows the ops team to manage infrastructure",
"lighthousesAsRelays": false
}'
Request Collapse all
Base URL
https://api.defined.net
Auth
Parameters
— pathrequired
Body required
{
  "name": "Management",
  "description": "This network allows the ops team to manage infrastructure",
  "lighthousesAsRelays": false
}
ResponseClear

Click the Send API Request button above and see the response here!