LLM Functions

🔒 #26668 Страница «ИИ-функции»: включить или выключить функцию в компании; #26682 режим запуска (auto - по событию и из меню, manual - только из меню).

#26668 Страница «ИИ-функции»: включить или выключить функцию в компании; #26682 режим запуска (auto - по событию и из меню, manual - только из меню).

Access: authorized (10 ) · Scope: write

Allows: company:llm (все обязательны; без ресурса)

TypeScript (copy-paste)

POST /llm/functions/update

<details open><summary><b>Body</b></summary>
export interface LlmFunctionsUpdateBody {
  key: string
  enabled?: boolean | null
  launch?: LLMFunctionConnection_launch | null
}
</details> <details open><summary><b>Response</b></summary>
export type LlmFunctionsUpdateResponse = IServerResponse<LLMFunctionConnection>

export interface IServerResponse<T = any> {
  code: number
  data: T
  srvTS: number
  rkey: string
}
</details>

Полный файл типов: /docs/types · raw: /docs/api-types.ts

post/llm/functions/update

Request

  • Base URL: http://localhost
  • URL: http://localhost/llm/functions/update
  • Auth: one of:
    • API key in header sid and API key in header rts and API key in header sig
    • HTTP bearer

Headers

devIDstring uuid required

UUID устройства клиента

tzstring required
Example:Europe/Moscow

Таймзона клиента (IANA или offset)

appstring required
Example:kosmodrom-web

Имя клиентского приложения

appVerstring required
Example:1.0.0

Версия клиента

rKeystring

Уникальный ключ запроса для логов/саппорта

Request body

keystring required
enabledboolean nullable
launch'auto' | 'manual'

auto = "auto", manual = "manual"

Response

OK — IServerResponse<LLMFunctionConnection>

codeinteger required
srvTSinteger required

Server timestamp (ms)

rkeystring required

Request key

Example response

{
  "code": 200
}

Changes

No recorded changes to this operation across all 1 revision of this API.