Delete Room
curl --request DELETE \
--url https://api.eka.care/ipd/service/rooms/{room_id} \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/service/rooms/{room_id}"
headers = {"auth": "<auth>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/ipd/service/rooms/{room_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.delete("https://api.eka.care/ipd/service/rooms/{room_id}")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/ipd/service/rooms/{room_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/service/rooms/{room_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"success": true
}
}{
"message": "Room not found"
}{
"message": "<string>"
}Rooms
Delete Room
Overview
This API deletes an IPD room of your workspace. The delete is a soft delete: the room is archived, not removed.
Cascading archive: deleting a room also archives every bed in that room. Archived rooms and beds are no longer returned in listings.
Returns 400 with Room not found when the room_id does not exist or belongs to another workspace.
DELETE
/
ipd
/
service
/
rooms
/
{room_id}
Delete Room
curl --request DELETE \
--url https://api.eka.care/ipd/service/rooms/{room_id} \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/service/rooms/{room_id}"
headers = {"auth": "<auth>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/ipd/service/rooms/{room_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.delete("https://api.eka.care/ipd/service/rooms/{room_id}")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/ipd/service/rooms/{room_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/service/rooms/{room_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"success": true
}
}{
"message": "Room not found"
}{
"message": "<string>"
}Was this page helpful?

