---
title: "Write Role Template"
method: PUT
path: "/api/admin/roles/{role_id}/templates/{filename}"
tags: ["admin-roles"]
---

# Write Role Template

`PUT /api/admin/roles/{role_id}/templates/{filename}`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/admin/roles/{role_id}/templates/{filename}`
- Auth: HTTP bearer

Write a Jinja2 template to S3 for a role.

## Path parameters

- `role_id` string, uuid, required
- `filename` string, required

## Request body

- WriteTemplateRequest
  - `content` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
