> ## Documentation Index
> Fetch the complete documentation index at: https://developer.eka.care/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Bed

> 
### Overview

This API renames an existing **IPD bed** of your workspace. Only the bed `name` can be changed; the bed's room cannot be changed with this API.

Returns `400` with `Bed not found` when the `bed_id` does not exist or belongs to another workspace.



## OpenAPI

````yaml post /ipd/v1/service/beds/{bed_id}
openapi: 3.0.0
info:
  title: Ekacare API & Webhook Documentation
  contact: {}
  version: '1.0'
servers:
  - description: Production
    url: https://api.eka.care
  - description: Stage/Sandbox
    url: https://api.dev.eka.care
security: []
paths:
  /ipd/v1/service/beds/{bed_id}:
    post:
      tags:
        - IPD API
      summary: Update Bed
      description: >-

        ### Overview


        This API renames an existing **IPD bed** of your workspace. Only the bed
        `name` can be changed; the bed's room cannot be changed with this API.


        Returns `400` with `Bed not found` when the `bed_id` does not exist or
        belongs to another workspace.
      operationId: UpdateIpdBed
      parameters:
        - name: auth
          in: header
          required: true
          schema:
            type: string
          example: >-
            eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM
        - name: bed_id
          in: path
          description: Id of the bed to update.
          required: true
          style: simple
          schema:
            type: string
          example: 66f1c4d2e4b0a1b2c3d4e702
      requestBody:
        description: The new bed name.
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - name
              properties:
                name:
                  type: string
                  description: New display name of the bed.
            example:
              name: ICU-04A
      responses:
        '200':
          description: OK — the updated bed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdBedResponse'
              example:
                success: true
                data:
                  id: 66f1c4d2e4b0a1b2c3d4e702
                  name: ICU-04A
                  room: 66f1c3b7e4b0a1b2c3d4e601
                  updatedAt: '2026-10-07T10:25:00.000Z'
        '400':
          description: >-
            Bad Request. Returns `{ success: false, error }` when the `bed_id`
            is not a valid id or the bed was not found, or `{ message }` when
            the request body failed schema validation (for example `name` is
            missing or an unknown field was sent; the `message` is currently
            empty).
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/IpdServiceFailure'
                  - $ref: '#/components/schemas/IpdServiceError'
              example:
                success: false
                error: Bed not found
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceError'
      deprecated: false
components:
  schemas:
    IpdBedResponse:
      title: IpdBedResponse
      type: object
      properties:
        success:
          type: boolean
        data:
          $ref: '#/components/schemas/IpdBed'
    IpdServiceFailure:
      title: IpdServiceFailure
      type: object
      properties:
        success:
          type: boolean
          description: Always `false`.
        error:
          type: string
          description: Human-readable error message.
    IpdServiceError:
      title: IpdServiceError
      type: object
      properties:
        message:
          type: string
          description: Human-readable error message.
    IpdBed:
      title: IpdBed
      type: object
      properties:
        id:
          type: string
          description: Bed id.
        name:
          type: string
          description: Display name of the bed.
        room:
          type: string
          description: Id of the room the bed belongs to. Absent when not set.
        updatedAt:
          type: string
          description: Last-updated date-time as an ISO-8601 string.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.