DELETE API to Delete Meeting Room
DELETE
https://<appname>.metered.live/api/v1/room/{roomName}
<appname>
- replace it the name of your app.
<roomName>
- The name of the room that you want to delete.
Description
This endpoint allows you to Delete a Meeting Room
Parameters
Parameters | Description | Required | Options | |
---|---|---|---|---|
Query | ||||
secretKey | string | your secret key | yes | - |
Body | application/json | |||
roomName | string | The name of the room which you want to delete | yes | - |
Request Samples
- cURL
- NodeJs
- Ruby
- Python
- Go
cURL
curl --request DELETE \
--url 'https://appname.metered.live/api/v1/room/roomName?secretKey={replace_this_with_your_secretKey}' \
--header 'Accept: application/json'
NodeJs (Axios)
//We are using axios to send requests in our example
const axios = require('axios');
async function (){
try{
const response = await axios.delete('https://appname.metered.live/api/v1/room/roomName',
{
params: {
secretKey: 'your_secret_key'
}
})
console.log(response)
} catch(error){
console.log(error)
}
}
Ruby
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://yourapp.metered.live/api/v1/room/roomName")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Accept"] = 'application/json'
response = http.request(request)
puts response.read_body
Python
import requests
url = "https://yourapp.metered.live/api/v1/room/roomName"
headers = {"Accept": "application/json"}
response = requests.request("DELETE", url, headers=headers)
print(response.text)
Go
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
)
func main() {
client := &http.Client{}
req, err := http.NewRequest("DELETE", "https://appname.metered.live/api/v1/room/roomName?secretKey={replace_this_with_your_secretKey}", nil)
if err != nil {
log.Fatal(err)
}
req.Header.Set("Accept", "application/json")
resp, err := client.Do(req)
if err != nil {
log.Fatal(err)
}
defer resp.Body.Close()
bodyText, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Fatal(err)
}
fmt.Printf("%s\n", bodyText)
}
Responses
200
{
"success": true,
"message": "Room successfully archived"
}
400
{
"success": false,
"message": "Invalid request"
}
500
{
"eventCode": "",
"message": "error message"
}