Skip to main content
PUT
/
devices
/
{id}
/
disconnect
Disconnect the active device and revert to builtin
curl --request PUT \
  --url http://localhost:6063/devices/{id}/disconnect
import requests

url = "http://localhost:6063/devices/{id}/disconnect"

response = requests.put(url)

print(response.text)
const options = {method: 'PUT'};

fetch('http://localhost:6063/devices/{id}/disconnect', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_PORT => "6063",
  CURLOPT_URL => "http://localhost:6063/devices/{id}/disconnect",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "http://localhost:6063/devices/{id}/disconnect"

	req, _ := http.NewRequest("PUT", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.put("http://localhost:6063/devices/{id}/disconnect")
  .asString();
require 'uri'
require 'net/http'

url = URI("http://localhost:6063/devices/{id}/disconnect")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Put.new(url)

response = http.request(request)
puts response.read_body

Path Parameters

id
string
required

Response

200

Disconnected