Create Category
curl --request POST \
--url https://api.eka.care/ipd/service/categories \
--header 'Content-Type: application/json' \
--header 'auth: <auth>' \
--data '
{
"name": "ICU",
"description": "Intensive Care Unit"
}
'import requests
url = "https://api.eka.care/ipd/service/categories"
payload = {
"name": "ICU",
"description": "Intensive Care Unit"
}
headers = {
"auth": "<auth>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {auth: '<auth>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'ICU', description: 'Intensive Care Unit'})
};
fetch('https://api.eka.care/ipd/service/categories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/ipd/service/categories")
.header("auth", "<auth>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"ICU\",\n \"description\": \"Intensive Care Unit\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/ipd/service/categories");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
request.AddJsonBody("{\n \"name\": \"ICU\",\n \"description\": \"Intensive Care Unit\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/service/categories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["auth"] = '<auth>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"ICU\",\n \"description\": \"Intensive Care Unit\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "66f1c2a9e4b0a1b2c3d4e5f6",
"name": "ICU",
"description": "Intensive Care Unit",
"updatedAt": "2026-10-07T09:30:00.000Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}Categories
Create Category
Overview
This API creates a new IPD category for your workspace. A category groups rooms (for example ICU, General Ward or Private Room); rooms are created under a category and beds under a room.
Only name is required. The category id and updatedAt are server-generated. Fields not listed in the request body are rejected.
POST
/
ipd
/
service
/
categories
Create Category
curl --request POST \
--url https://api.eka.care/ipd/service/categories \
--header 'Content-Type: application/json' \
--header 'auth: <auth>' \
--data '
{
"name": "ICU",
"description": "Intensive Care Unit"
}
'import requests
url = "https://api.eka.care/ipd/service/categories"
payload = {
"name": "ICU",
"description": "Intensive Care Unit"
}
headers = {
"auth": "<auth>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {auth: '<auth>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'ICU', description: 'Intensive Care Unit'})
};
fetch('https://api.eka.care/ipd/service/categories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/ipd/service/categories")
.header("auth", "<auth>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"ICU\",\n \"description\": \"Intensive Care Unit\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/ipd/service/categories");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
request.AddJsonBody("{\n \"name\": \"ICU\",\n \"description\": \"Intensive Care Unit\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/service/categories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["auth"] = '<auth>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"ICU\",\n \"description\": \"Intensive Care Unit\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "66f1c2a9e4b0a1b2c3d4e5f6",
"name": "ICU",
"description": "Intensive Care Unit",
"updatedAt": "2026-10-07T09:30:00.000Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}Was this page helpful?

