Skip to Content
API ReferenceToolPOST /update

POST /tool/update

Update Tool

Update tools using composable infra architecture.

Request Body (UpdateToolApiRequest)

FieldTypeRequiredDescription
toolsUpdateToolItem[]NoList of tools to update (required on first call when all is false)
allbooleanNoWhen true, apply patch to every tool matching the filter fields below (minus excluded_ids)
excluded_idsstring[]NoUUIDs to skip even when matched by all-mode filters
patchUpdateToolPatchNoShared change set applied to every matched row when all=true (sparse — only set fields are updated; patch.id ignored)
searchstringNoFull-text search query
filter_department_idsstring[]NoFilter by department UUIDs
filter_creatablestring[]NoFilter by creatable flag (no-op for row filtering today; accepted for forward compatibility)
filter_agent_idsstring[]NoFilter by agent UUIDs that reference these tools (no-op for row filtering today; accepted for forward compatibility)
department_searchstringNoSearch text for department facet (no-op for row filtering)
flag_searchstringNoSearch text for flag facet (no-op for row filtering)
agent_searchstringNoSearch text for agent facet (no-op for row filtering)
idempotency_keystringNoOperation key for ack — promotes or rejects a dormant update
softbooleanNoStage the update dormant (active=False) — propose; the ack ({idempotency_key, accept}) promotes/rejects it
acceptbooleanNoAccept (promote) or reject dormant state. Only meaningful with idempotency_key

Response (UpdateToolApiResponse)

FieldTypeRequiredDescription
resultsToolResultItem[]YesList of operation results
idempotency_keystringNoIdempotency key echoed back for client correlation
toolsListToolApiTool[]NoHydrated rows for the updated tools (same shape as /tool/search returns)
Last updated on