更新 LTM Space
PUT/ltm/spaces/:space_id
部分更新:请求体里没有出现的字段保持不变。embedding_model 创建后不能修改,不在请求体中。
event_retention_days 和 memory_retention_days 只要出现在请求体中(包括传 null),就需要 CLIENT_ADMIN 权限;metadata_keys 只能新增,不能删除已声明的键。
第一条 Actor Event 写入后 profile_schema 固定:请求把它改成与当前不同的值时,整个请求都不生效,请求中的其他字段也不会更新,返回 409(code 1775)。
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
更新后的 Space。
Invalid configuration, including a managed_recall value out of range or an effective context_token_budget larger than evidence_token_budget (code 1004); or an update that would remove a declared metadata key (code 1749).
Missing or invalid Turing authentication.
Changing event_retention_days or memory_retention_days requires CLIENT_ADMIN on the Space's client (code 1308).
Space not found in the caller's project and environment (code 1751).
The request changes profile_schema after the first actor Event froze it, so nothing in the request was applied (code 1775); or another update changed the Space at the same time (code 1784), so read the Space again and retry.