---
title: "Bulk Apply Template To Users"
method: POST
path: "/api/users/bulk/apply_template"
tags: ["User"]
---

# Bulk Apply Template To Users

`POST /api/users/bulk/apply_template`

Apply a user template to selected existing users by ID.

## Request body

- BulkUsersApplyTemplate — Apply a user template to a selection of existing users (by ID).
  - `user_template_id` integer, required
  - `note` string, nullable
  - `ids` integer[]

## Response `200`

Successful Response

- BulkUsersActionResponse
  - `users` string[], required
  - `count` integer, required

## Other responses

- `400` — BadRequest Error
- `401` — Unauthorized Error
- `403` — Forbidden Error
- `404` — NotFound Error
- `422` — Validation Error

---

[API](https://skmtc.dev/ha-man2/apis/pasarguardapi.md) · [All operations](https://skmtc.dev/ha-man2/apis/pasarguardapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ha-man2/pasarguardapi/revisions/84d9ff88fcda/schema)
