InternalNetworks
Create an internal network
Creates a new internal network for the specified workspace. Only the workspace owner can perform this action.
POST
/
api
/
internal-networks
Create an internal network
curl --request POST \
--url https://{baseUrl}/api/v1/api/internal-networks \
--header 'Content-Type: application/json' \
--data '
{
"name": "Internal Network 1"
}
'import requests
url = "https://{baseUrl}/api/v1/api/internal-networks"
payload = { "name": "Internal Network 1" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Internal Network 1'})
};
fetch('https://{baseUrl}/api/v1/api/internal-networks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/internal-networks"
payload := strings.NewReader("{\n \"name\": \"Internal Network 1\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"message": "Success"
}⌘I
Create an internal network
curl --request POST \
--url https://{baseUrl}/api/v1/api/internal-networks \
--header 'Content-Type: application/json' \
--data '
{
"name": "Internal Network 1"
}
'import requests
url = "https://{baseUrl}/api/v1/api/internal-networks"
payload = { "name": "Internal Network 1" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Internal Network 1'})
};
fetch('https://{baseUrl}/api/v1/api/internal-networks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/internal-networks"
payload := strings.NewReader("{\n \"name\": \"Internal Network 1\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"message": "Success"
}