trigger_catalog_sync
Sync catalog data between versions in SAP Commerce Cloud. Specify catalog ID, source version, and target version to update product information.
Instructions
Trigger a catalog synchronization between versions
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| catalogId | Yes | Catalog ID to sync | |
| sourceVersion | Yes | Source catalog version (e.g., "Staged") | |
| targetVersion | Yes | Target catalog version (e.g., "Online") |
Implementation Reference
- src/index.ts:359-365 (handler)MCP tool handler for 'trigger_catalog_sync' that extracts arguments and calls the HybrisClient.triggerCatalogSync method.case 'trigger_catalog_sync': result = await hybrisClient.triggerCatalogSync( args?.catalogId as string, args?.sourceVersion as string, args?.targetVersion as string ); break;
- src/index.ts:235-252 (schema)Input schema definition for the trigger_catalog_sync tool, specifying required parameters: catalogId, sourceVersion, targetVersion.inputSchema: { type: 'object', properties: { catalogId: { type: 'string', description: 'Catalog ID to sync', }, sourceVersion: { type: 'string', description: 'Source catalog version (e.g., "Staged")', }, targetVersion: { type: 'string', description: 'Target catalog version (e.g., "Online")', }, }, required: ['catalogId', 'sourceVersion', 'targetVersion'], },
- src/index.ts:232-253 (registration)Tool registration in the tools array, defining name, description, and schema for list tools endpoint.{ name: 'trigger_catalog_sync', description: 'Trigger a catalog synchronization between versions', inputSchema: { type: 'object', properties: { catalogId: { type: 'string', description: 'Catalog ID to sync', }, sourceVersion: { type: 'string', description: 'Source catalog version (e.g., "Staged")', }, targetVersion: { type: 'string', description: 'Target catalog version (e.g., "Online")', }, }, required: ['catalogId', 'sourceVersion', 'targetVersion'], }, },
- src/hybris-client.ts:514-535 (helper)Core implementation of catalog sync in HybrisClient class, sends POST request to HAC /console/sync/execute with catalog parameters using authenticated HAC session.async triggerCatalogSync( catalogId: string, sourceVersion: string, targetVersion: string ): Promise<{ success: boolean; message: string }> { const formData = new URLSearchParams({ catalogId, sourceVersion, targetVersion, }); return this.hacRequest<{ success: boolean; message: string }>( `${this.hacPrefix}/console/sync/execute`, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: formData, } ); }