> ## 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 Nursing Note

> 
### Overview

This API updates a **nursing note** 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.

**To delete a note**, send `archived: true`. The note is archived (not removed) and the user making the request is recorded in `archived_by_oid`, `archived_by_name` and `archived_at`. Sending `archived: false` has no effect, so an archived note cannot be restored.

Returns `404` with `Nursing note not found` when the `note_id` does not exist or belongs to another workspace.



## OpenAPI

````yaml patch /ipd/v1/service/nursing-notes/{note_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/nursing-notes/{note_id}:
    patch:
      tags:
        - IPD API
      summary: Update Nursing Note
      description: >-

        ### Overview


        This API updates a **nursing note** 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.


        **To delete a note**, send `archived: true`. The note is archived (not
        removed) and the user making the request is recorded in
        `archived_by_oid`, `archived_by_name` and `archived_at`. Sending
        `archived: false` has no effect, so an archived note cannot be restored.


        Returns `404` with `Nursing note not found` when the `note_id` does not
        exist or belongs to another workspace.
      operationId: UpdateIpdNursingNote
      parameters:
        - name: auth
          in: header
          required: true
          schema:
            type: string
          example: >-
            eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM
        - name: note_id
          in: path
          description: Id of the nursing note to update.
          required: true
          style: simple
          schema:
            type: string
          example: 66f1c9d4e4b0a1b2c3d4ec07
      requestBody:
        description: The note fields to change. Send only the fields you want to update.
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                content_html:
                  type: string
                  description: New note content as HTML.
                content_json:
                  type: array
                  items: {}
                  description: New note content in structured (JSON) form.
                tag:
                  type: array
                  items:
                    type: string
                  description: New tags for the note (replaces the existing tags).
                date:
                  type: string
                  description: >-
                    New date-time the note is recorded for, as an ISO-8601
                    string.
                archived:
                  type: boolean
                  description: Send `true` to archive (delete) the note.
            example:
              archived: true
      responses:
        '200':
          description: OK — the updated nursing note.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdNursingNoteResponse'
              example:
                success: true
                data:
                  id: 66f1c9d4e4b0a1b2c3d4ec07
                  admission_id: a1b2c3d4-5678-90ab-cdef-1234567890ab
                  patient_id: pid-321
                  actor_name: Anita Rao
                  actor_oid: '161467756044203'
                  content_html: <p>Patient stable. BP 120/80, pulse 78.</p>
                  content_json:
                    - type: paragraph
                      text: Patient stable. BP 120/80, pulse 78.
                  tag:
                    - vitals
                  date: '2026-10-07T08:00:00.000Z'
                  archived: true
                  archived_by_oid: '161467756044203'
                  archived_by_name: Anita Rao
                  archived_at: '2026-10-07T11:00:00.000Z'
                  createdAt: '2026-10-07T08:02:11.000Z'
                  updatedAt: '2026-10-07T11:00:00.000Z'
                  __v: 0
        '400':
          description: >-
            Bad Request. Returns `{ success: false, error }` when the `note_id`
            is not a valid id or the note could not be saved, or `{ message }`
            when the request body failed schema validation (for example an
            unknown field was sent; the `message` is currently empty).
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/IpdServiceFailure'
                  - $ref: '#/components/schemas/IpdServiceError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceError'
        '404':
          description: Not Found — the nursing note was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceFailure'
              example:
                success: false
                error: Nursing note not found
      deprecated: false
components:
  schemas:
    IpdNursingNoteResponse:
      title: IpdNursingNoteResponse
      type: object
      properties:
        success:
          type: boolean
        data:
          $ref: '#/components/schemas/IpdNursingNote'
    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.
    IpdNursingNote:
      title: IpdNursingNote
      type: object
      properties:
        id:
          type: string
          description: Nursing note id.
        admission_id:
          type: string
          description: Id of the IPD admission the note belongs to.
        patient_id:
          type: string
          description: Id of the patient the note is about.
        actor_name:
          type: string
          description: Name of the user who created the note.
        actor_oid:
          type: string
          description: Id of the user who created the note.
        content_html:
          type: string
          description: Note content as HTML.
        content_json:
          type: array
          items: {}
          description: Note content in structured (JSON) form.
        tag:
          type: array
          items:
            type: string
          description: Tags of the note.
        date:
          type: string
          description: Date-time the note is recorded for, as an ISO-8601 string.
        archived:
          type: boolean
          description: '`true` when the note has been archived (deleted). Absent otherwise.'
        archived_by_oid:
          type: string
          description: Id of the user who archived the note. Present only when archived.
        archived_by_name:
          type: string
          description: Name of the user who archived the note. Present only when archived.
        archived_at:
          type: string
          description: >-
            Date-time the note was archived, as an ISO-8601 string. Present only
            when archived.
        createdAt:
          type: string
          description: Created date-time as an ISO-8601 string.
        updatedAt:
          type: string
          description: Last-updated date-time as an ISO-8601 string.
        __v:
          type: number
          description: Internal document version.

````

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