Skip to main content
POST
/
tunnelkeys
/
{keyId}
/
enable
/
Enable a tunnel key
curl --request POST \
  --url https://dashboard.hologram.io/api/1/tunnelkeys/{keyId}/enable/ \
  --header 'Authorization: Basic <encoded-value>'
import requests

url = "https://dashboard.hologram.io/api/1/tunnelkeys/{keyId}/enable/"

headers = {"Authorization": "Basic <encoded-value>"}

response = requests.post(url, headers=headers)

print(response.text)
const options = {method: 'POST', headers: {Authorization: 'Basic <encoded-value>'}};

fetch('https://dashboard.hologram.io/api/1/tunnelkeys/{keyId}/enable/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
const url = 'https://dashboard.hologram.io/api/1/tunnelkeys/{keyId}/enable/';
const options = {method: 'POST', headers: {Authorization: 'Basic <encoded-value>'}};

fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));
{
  "success": true,
  "data": {
    "id": 123
  }
}

Authorizations

Authorization
string
header
required

HTTP Basic authentication using API keys. Set the username to apikey and the password to your API key. You can find your API key on the Hologram Dashboard under Account Settings.

Path Parameters

keyId
integer
required

Tunnel key ID

Response

OK

success
boolean

Indicates whether the request was successful.

Example:

true

data
object