---
title: "Unpublish Agent"
method: POST
path: "/agents/{agent_id}/unpublish"
tags: ["agents"]
---

# Unpublish Agent

`POST /agents/{agent_id}/unpublish`

## Request

- Base URL: `https://studio-api.meganova.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://studio-api.meganova.ai/agents/{agent_id}/unpublish`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Unpublish an agent.

## Path parameters

- `agent_id` string, uuid, required

## Response `200`

Successful Response

- AgentResponse: Agent response with all fields.
  - `name` string, required
  - `description` string, nullable
  - `avatar_url` string, nullable
  - `slug` string, nullable
  - `id` string, uuid, required
  - `space_id` string, uuid, required
  - `created_by` string, uuid, required
  - `character_id` string, uuid, nullable
  - `instructions` string, nullable
  - `deployment_config` object, required
  - `skill_template_ids` unknown[]
    - unknown
  - `skill_pack_ids` string[]
  - `api_key_prefix` string, nullable
  - `is_published` boolean, required
  - `is_active` boolean, required
  - `total_conversations` integer, required
  - `total_messages` integer, required
  - `avg_satisfaction` number, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `published_at` string, date-time, nullable
  - `character_name` string, nullable
  - `channel_count` integer
  - `mesh_sync_status` string, nullable

## Other responses

- `422`: Validation Error

---

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