---
title: "Save User Template Parameter Details"
method: POST
path: "/api/MobileApp/templates/save_user_template_parameter_details"
tags: ["MobileApp"]
---

# Save User Template Parameter Details

`POST /api/MobileApp/templates/save_user_template_parameter_details`

## Request

- Base URL: `https://api.leapsurgebi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.leapsurgebi.com/api/MobileApp/templates/save_user_template_parameter_details`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/token`
- TypeScript: <https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/docs/api/MobileApp/templates/save_user_template_parameter_details/post.ts> (a function with typed inputs; its response is checked against the schema)

Replace the per-user parameter/recipient rows for a PAGINATED template in
LS_Lia_User_Template_parameter_details: delete existing rows for the template (LSCode-
scoped), then insert the supplied rows. title/sub_title stay UI-only. Rows missing a
required key (user, email, value, param name, report) are skipped.

Writes go to the CUSTOMER database — the same one paginated_work_items and the
lsservicebus scheduler read. Writing to the main-DB `db` instead produced rows nothing
would ever pick up, and the run would report "no recipients".

[Template Name] / [Report Name] / [User Name] are NOT NULL but purely denormalized, so
they are looked up from the main-DB masters when the payload omits them rather than
forcing every caller to send labels it does not own.

## Headers

- `Customer-Key` string, required

## Request body

- UserTemplateParameterDetailsRequest
  - `template_code` string, required
  - `data` UserTemplateParameterDetailItem[], required
    - `report_code` string, required
    - `report_name` string, nullable
    - `template_name` string, nullable
    - `parameter_name` string, required
    - `user_code` string, required
    - `user_name` string, nullable
    - `user_email` string, required
    - `cc` string, nullable
    - `bcc` string, nullable
    - `value` string, required
    - `full_access` integer, nullable
    - `isgroup` integer, nullable
    - `external_employee_code` string, nullable
    - `remarks` string, nullable
    - `name_description` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-24** `23b42df3193a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/changes/api/MobileApp/templates/save_user_template_parameter_details/post.md)

---

[API](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi.md) - [All operations](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/llms.txt) - [OpenAPI document](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/revisions/13653cb8ee76?raw)
