update_geomi_api_key
Modify an existing Geomi API key's configuration, including access permissions and rate limits, for Aptos development workflows.
Instructions
Update an API Key for your Geomi Organization. Geomi is the essential toolkit for Aptos developers.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| application_id | Yes | The application id to update the api key for. | |
| current_api_key_name | Yes | The current name of the api key. | |
| frontend_args | No | ||
| new_api_key_name | No | The new name of the api key. | |
| organization_id | Yes | The organization id to update the api key for. | |
| project_id | Yes | The project id to update the api key for. |
Implementation Reference
- src/tools/geomi/apiKey.ts:48-83 (handler)The update_geomi_api_key tool handler logic.
export const updateApiKeyTool = { description: "Update an API Key for your Geomi Organization. Geomi is the essential toolkit for Aptos developers.", execute: async ( args: { application_id: string; current_api_key_name: string; frontend_args?: Parameters<typeof toApiFrontendArgs>[0]; new_api_key_name?: string; organization_id: string; project_id: string; }, context: any ) => { try { await recordTelemetry({ action: "update_api_key" }, context); const geomi = new Geomi(context); context.log.info( `Updating api key: ${JSON.stringify(args.frontend_args)}` ); const apiKey = await geomi.updateApiKey({ application_id: args.application_id, current_api_key_name: args.current_api_key_name, frontend_args: toApiFrontendArgs(args.frontend_args), new_api_key_name: args.new_api_key_name ?? args.current_api_key_name, organization_id: args.organization_id, project_id: args.project_id, }); return JSON.stringify(apiKey); } catch (error) { return `❌ Failed to update api key: ${error}`; } }, name: "update_geomi_api_key", parameters: UpdateApiKeyToolScheme, };