Update Category
curl --request POST \
--url https://api.eka.care/ipd/service/categories/{category_id} \
--header 'Content-Type: application/json' \
--header 'auth: <auth>' \
--data '
{
"name": "Medical ICU"
}
'import requests
url = "https://api.eka.care/ipd/service/categories/{category_id}"
payload = { "name": "Medical ICU" }
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: 'Medical ICU'})
};
fetch('https://api.eka.care/ipd/service/categories/{category_id}', 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/{category_id}")
.header("auth", "<auth>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Medical ICU\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/ipd/service/categories/{category_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
request.AddJsonBody("{\n \"name\": \"Medical ICU\"\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/{category_id}")
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\": \"Medical ICU\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "66f1c2a9e4b0a1b2c3d4e5f6",
"name": "Medical ICU",
"description": "Intensive Care Unit",
"updatedAt": "2026-10-07T10:15:00.000Z"
}
}{
"message": "Category not found"
}{
"message": "<string>"
}Categories
Update Category
Overview
This API updates an existing IPD category of your workspace. It is a partial update: only the fields sent in the request body are changed, and fields that are omitted keep their current value.
Returns 400 with Category not found when the category_id does not exist or belongs to another workspace.
POST
/
ipd
/
service
/
categories
/
{category_id}
Update Category
curl --request POST \
--url https://api.eka.care/ipd/service/categories/{category_id} \
--header 'Content-Type: application/json' \
--header 'auth: <auth>' \
--data '
{
"name": "Medical ICU"
}
'import requests
url = "https://api.eka.care/ipd/service/categories/{category_id}"
payload = { "name": "Medical ICU" }
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: 'Medical ICU'})
};
fetch('https://api.eka.care/ipd/service/categories/{category_id}', 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/{category_id}")
.header("auth", "<auth>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Medical ICU\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/ipd/service/categories/{category_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
request.AddJsonBody("{\n \"name\": \"Medical ICU\"\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/{category_id}")
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\": \"Medical ICU\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "66f1c2a9e4b0a1b2c3d4e5f6",
"name": "Medical ICU",
"description": "Intensive Care Unit",
"updatedAt": "2026-10-07T10:15:00.000Z"
}
}{
"message": "Category not found"
}{
"message": "<string>"
}Headers
Path Parameters
Id of the category to update.
Body
application/json
The category fields to change. Send only the fields you want to update.
Was this page helpful?

