v56

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01142337440.5 KB
ToolService
Tool Set Secrets

Update a tool set secret

Updates a secret scoped to the tool set

patch/v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/secrets/{id}

Path parameters

workspaceIdstring required
Example:workspace_01HXKD2E5NQM3T9AYWCF133E3Q

The workspace that owns the tool set.

toolSetIdstring required
Example:toolset_01HXKD2E5NQM3T9AYWCFNRMN74

The tool set the secret belongs to. Accepts the canonical ts_… form or the external_id:<value> form.

idstring required
Example:toolsecret_01HXKD2E5NQM3T9AYWCF8PWC4R

The secret to update.

Request body

workspaceIdstring

The workspace that owns the tool set.

toolSetIdstring

The tool set the secret belongs to. Accepts the canonical ts_… form or the external_id:<value> form.

idstring

The secret to update.

updateMaskstring field-mask

Fields to update.

Example request

{
  "workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
  "toolSetId": "toolset_01HXKD2E5NQM3T9AYWCFNRMN74",
  "id": "toolsecret_01HXKD2E5NQM3T9AYWCF8PWC4R"
}

Response

OK

Example response

{
  "metadata": {
    "accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
    "workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
    "profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
  },
  "info": {
    "createdBy": {
      "metadata": {
        "accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
        "profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
      }
    }
  }
}