---
title: "Tạo (hoặc tạo lại) link chia sẻ"
method: POST
path: "/me/excel/templates/{templateId}/link"
tags: ["MyExcelTemplates"]
---

# Tạo (hoặc tạo lại) link chia sẻ

`POST /me/excel/templates/{templateId}/link`

## Request

- Base URL: `https://api.fireant.vn`
- URL: `https://api.fireant.vn/me/excel/templates/{templateId}/link`
- Auth: OAuth 2
  - Implicit: `https://accounts.fireant.vn/connect/authorize`
  - Scopes: `user-data-write`
- TypeScript: <https://skmtc.dev/fireant/apis/fireant-restful-api/docs/me/excel/templates/:templateId/link/post.ts> (a function with typed inputs; its response is checked against the schema)

Token 128-bit mới, link cũ mất hiệu lực. Mẫu Riêng tư chuyển sang Link (visibility = 1).

## Path parameters

- `templateId` integer, required

## Response `200`

token, url

- FireAntApiModelsExcelTemplatesExcelTemplateLinkResult: Link chia sẻ của mẫu
  - `token` string: Token 128-bit (base64url, 22 ký tự) - truyền vào tham số token của các API mẫu
  - `url` string: URL chia sẻ: {ExcelTemplateShareBaseUrl}/{token}

## Other responses

- `403`: Không có quyền
- `404`: Không tồn tại

## Changes

- **2026-10-10** `300cfd8b632c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fireant/apis/fireant-restful-api/changes/me/excel/templates/:templateId/link/post.md)

---

[API](https://skmtc.dev/fireant/apis/fireant-restful-api.md) - [All operations](https://skmtc.dev/fireant/apis/fireant-restful-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fireant/apis/fireant-restful-api/revisions/c9b3aa855f95?raw)
