---
title: "取消发布智能体模板"
method: PUT
path: "/v3/agent-tpl/{id}/unpublish"
tags: ["模板"]
---

# 取消发布智能体模板

`PUT /v3/agent-tpl/{id}/unpublish`

## Request

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

通过发布 ID 取消已发布的智能体模板

## Path parameters

- `id` string, required

## Response `204`

取消发布成功

- 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)
