---
title: "Modify Client Template"
method: PUT
path: "/api/client_template/{template_id}"
tags: ["Client Template"]
---

# Modify Client Template

`PUT /api/client_template/{template_id}`

## Path parameters

- `template_id` integer, required

## Request body

- ClientTemplateModify
  - `name` string, nullable
  - `content` string, nullable
  - `is_default` boolean, nullable

## Response `200`

Successful Response

- ClientTemplateResponse
  - `id` integer, required
  - `name` string, required
  - `template_type` 'clash_subscription' | 'xray_subscription' | 'singbox_subscription' | 'user_agent' | 'grpc_user_agent', required
  - `content` string, required
  - `is_default` boolean, required
  - `is_system` boolean, required

## Other responses

- `401` — Unauthorized Error
- `403` — Forbidden Error
- `422` — Validation Error

---

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