---
title: "发布智能体模板"
method: POST
path: "/v3/agent-tpl/{id}/publish"
tags: ["模板"]
---

# 发布智能体模板

`POST /v3/agent-tpl/{id}/publish`

## Request

- Base URL: `https://localhost:30777/api/agent-factory`
- URL: `https://localhost:30777/api/agent-factory/v3/agent-tpl/{id}/publish`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/kweaver-ai/apis/agent-factory-api/docs/v3/agent-tpl/:id/publish/post.ts> (a function with typed inputs; its response is checked against the schema)

发布智能体模板

## Path parameters

- `id` string, required

## Request body

- object

## Response `200`

发布成功

- object

## Other responses

- `400`: 失败
- `401`: 失败
- `403`: 失败
- `500`: 失败

---

[API](https://skmtc.dev/kweaver-ai/apis/agent-factory-api.md) - [All operations](https://skmtc.dev/kweaver-ai/apis/agent-factory-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kweaver-ai/apis/agent-factory-api/revisions/94c8acc695b9?raw)
