JavaScript
Tool Set Secrets
Update a tool set secret
Rotate a tool-set-scoped secret in place. You cannot read it back to confirm.
PATCH
JavaScript
Rotate a tool set secret without changing where it is referenced. Every tool in this set that names
The new value takes effect at once, and the old one stops resolving. Like every secret,
${THIS_SECRET} picks up the new value at the next call.
spec.value is write-only: you cannot read it back to confirm the rotation, so verify by watching a tool call that uses it succeed, or check resolvedSecrets on the tool call. A non-empty value lands through a plain merge; updateMask is not needed to rotate. Send metadata.name to rename.
Rotating a tool set secret changes only this tool set’s copy. It does not touch a workspace secret of the same name, which other tool sets still resolve.
Related
Get a tool set secret
Confirm it exists after rotating.
Update a workspace secret
Rotate the workspace-wide equivalent.
Store and use secrets
Scopes and rotation.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The workspace that owns the tool set.
Example:
"workspace_01HXKD2E5NQM3T9AYWCF133E3Q"
The tool set the secret belongs to. Accepts the canonical ts_… form or the external_id: form.
Example:
"toolset_01HXKD2E5NQM3T9AYWCFNRMN74"
The secret to update.
Example:
"toolsecret_01HXKD2E5NQM3T9AYWCF8PWC4R"
Body
application/json