Skip to main content
Managed AgentsVersion: v3New

Unpublish a Managed Agent

POST/agent-studio/managed-agents/{managedAgentId}/unpublish

Unpublishes the agent, exactly as the app does: its triggers stop and scheduled runs are cancelled. The draft is kept and can be published again.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:managed-agents.buildAndPublish
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API version.

Available optionsv3
Example:v3
Idempotency-Keystringrequired

Unique key for this request. Resending it with the same request returns the original result.

Possible values: non-empty and <= 128 characters

Example:build-7f3cf4c0-39eb-46be-baa3-a1eb15021f25

Path Parameters

managedAgentIdstringrequired

Managed Agent ID.

Example:027ee957-ae94-40ad-89a3-b25c985f729b

Body

locationIdstringrequired

Location (sub-account) the agent belongs to

Example:ve9EPM428h8vShlRW1KT

Response

Unpublished

managedAgentIdstringrequired

Managed Agent ID

Example:027ee957-ae94-40ad-89a3-b25c985f729b
locationIdstringrequired

Location (sub-account) that owns the agent

Example:ve9EPM428h8vShlRW1KT
isPublishedbooleanrequired

Always false after a successful unpublish

Example:false