Skip to main content

unpinAgent

client.application.unpinAgent(data?: UnpinAgentRequest): Promise<void>

Unpins the currently pinned agent.

Removes the pinned agent from the UI, reverting to the default agent selection behavior.

Parameters​

ParameterTypeRequiredDescription
dataUnpinAgentRequestNoOptional unpin configuration

Returns​

Promise<void> — A promise that resolves when the agent has been unpinned

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.application.unpinAgent();
console.log(result);