Skip to main content

updateThreadLocation

plugin.chatApi.updateThreadLocation(data: UpdateThreadLocationRequest): Promise<void>

Updates the location context of a chat thread.

Associates the thread with a specific file path or project location, providing context for the conversation.

Parameters

ParameterTypeRequiredDescription
dataUpdateThreadLocationRequestYesThe location update payload

Returns

Promise<void> — A promise that resolves when the location has been updated

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.chatApi.updateThreadLocation(/* UpdateThreadLocationRequest */);
console.log(result);