> ## 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.

# Create Nursing Note Template

> 
### Overview

This API creates a **nursing note template** for your workspace. A template holds reusable note content that can be used to fill in new nursing notes.

The template's author (`actor_name` and `actor_oid`) is recorded from the user making the request. The template `id` and timestamps are server-generated. Fields not listed in the request body are rejected.



## OpenAPI

````yaml post /ipd/v1/service/nursing-notes-templates
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-templates:
    post:
      tags:
        - IPD API
      summary: Create Nursing Note Template
      description: >-

        ### Overview


        This API creates a **nursing note template** for your workspace. A
        template holds reusable note content that can be used to fill in new
        nursing notes.


        The template's author (`actor_name` and `actor_oid`) is recorded from
        the user making the request. The template `id` and timestamps are
        server-generated. Fields not listed in the request body are rejected.
      operationId: CreateIpdNursingNoteTemplate
      parameters:
        - name: auth
          in: header
          required: true
          schema:
            type: string
          example: >-
            eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM
      requestBody:
        description: The template to create.
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - name
                - content_html
                - content_json
              properties:
                name:
                  type: string
                  description: Display name of the template.
                description:
                  type: string
                  description: Optional description of the template.
                content_html:
                  type: string
                  description: Template content as HTML.
                content_json:
                  type: array
                  items: {}
                  description: Template content in structured (JSON) form.
                tag:
                  type: array
                  items:
                    type: string
                  description: Optional tags for the template.
            example:
              name: Vitals check
              description: Routine vitals note
              content_html: '<p>BP: __ / __, Pulse: __, Temp: __</p>'
              content_json:
                - type: paragraph
                  text: 'BP: __ / __, Pulse: __, Temp: __'
              tag:
                - vitals
      responses:
        '200':
          description: OK — the created template.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdNursingNoteTemplateResponse'
              example:
                success: true
                data:
                  id: 66f1cae5e4b0a1b2c3d4ed08
                  name: Vitals check
                  description: Routine vitals note
                  actor_name: Anita Rao
                  actor_oid: '161467756044203'
                  content_html: '<p>BP: __ / __, Pulse: __, Temp: __</p>'
                  content_json:
                    - type: paragraph
                      text: 'BP: __ / __, Pulse: __, Temp: __'
                  tag:
                    - vitals
                  createdAt: '2026-10-07T08:10:00.000Z'
                  updatedAt: '2026-10-07T08:10:00.000Z'
                  __v: 0
        '400':
          description: >-
            Bad Request. Returns `{ success: false, error }` when the template
            could not be saved (for example `name` or `content_html` is empty),
            or `{ message }` when the request body failed schema validation (for
            example a required field 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'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceError'
      deprecated: false
components:
  schemas:
    IpdNursingNoteTemplateResponse:
      title: IpdNursingNoteTemplateResponse
      type: object
      properties:
        success:
          type: boolean
        data:
          $ref: '#/components/schemas/IpdNursingNoteTemplate'
    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.
    IpdNursingNoteTemplate:
      title: IpdNursingNoteTemplate
      type: object
      properties:
        id:
          type: string
          description: Template id.
        name:
          type: string
          description: Display name of the template.
        description:
          type: string
          description: Description of the template. Absent when not set.
        actor_name:
          type: string
          description: Name of the user who created the template.
        actor_oid:
          type: string
          description: Id of the user who created the template.
        content_html:
          type: string
          description: Template content as HTML.
        content_json:
          type: array
          items: {}
          description: Template content in structured (JSON) form.
        tag:
          type: array
          items:
            type: string
          description: Tags of the template.
        archived:
          type: boolean
          description: >-
            `true` when the template has been archived (deleted). Absent
            otherwise.
        archived_by_oid:
          type: string
          description: >-
            Id of the user who archived the template. Present only when
            archived.
        archived_by_name:
          type: string
          description: >-
            Name of the user who archived the template. Present only when
            archived.
        archived_at:
          type: string
          description: >-
            Date-time the template 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.