AgentMemory

🔒 #25987 Изменение записи памяти агентов: поля, уровень и область, модерация (verified, shared - только администратор). version - версия, которую видел пользователь; запись изменилась после чтения - отказ.

#25987 Изменение записи памяти агентов: поля, уровень и область, модерация (verified, shared - только администратор). version - версия, которую видел пользователь; запись изменилась после чтения - отказ.

Access: authorized (10 ) · Scope: write

Allows: memory:write, memory:moderate (все обязательны; проверка в команде по ресурсу из запроса)

TypeScript (copy-paste)

POST /agent-memory/update

<details open><summary><b>Params</b></summary>
export interface AgentMemoryUpdateParams {
  ID: string
}
</details> <details open><summary><b>Body</b></summary>
export interface AgentMemoryUpdateBody {
  /** Unix timestamp in milliseconds */
  version: number
  level?: AgentMemory_Level | null
  projectID?: string | null
  repositoryID?: string | null
  load?: AgentMemory_Load | null
  jobs?: Array<AgentMemory_Job> | null
  title?: string | null
  text?: string | null
  verified?: boolean | null
  shared?: boolean | null
}
</details> <details open><summary><b>Response</b></summary>
export type AgentMemoryUpdateResponse = IServerResponse<Record<string, any>>

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

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

post/agent-memory/update

Request

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

Query parameters

IDstring uuid required

Можно передать header ID (сервер мержит headers+query)

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

versioninteger required

Unix timestamp in milliseconds

level'company' | 'user' | 'project' | 'repository'

company = "company", user = "user", project = "project", repository = "repository"

projectIDstring uuid nullable
repositoryIDstring uuid nullable
load'always' | 'job' | 'request'

always = "always", job = "job", request = "request"

jobsAgentMemoryJob[] nullable
titlestring nullable
textstring nullable
verifiedboolean nullable
sharedboolean nullable

Response

OK — IServerResponse<Record<string, any>>

codeinteger required
dataobject required

Response payload (нет ResponseData / doc.schema)

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.