update_app_store_version_localization
Modify app store listing details like description, keywords, or promotional text for specific localizations to ensure accurate store presentation across regions.
Instructions
Update a specific field in an app store version localization
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localizationId | Yes | The ID of the app store version localization to update | |
| field | Yes | The field to update | |
| value | Yes | The new value for the field |
Implementation Reference
- src/handlers/localizations.ts:83-116 (handler)The core handler function that performs input validation, constructs the App Store Connect API patch request, and executes the update via the client.async updateAppStoreVersionLocalization(args: { localizationId: string; field: AppStoreVersionLocalizationField; value: string; }): Promise<AppStoreVersionLocalizationResponse> { const { localizationId, field, value } = args; validateRequired(args, ['localizationId', 'field', 'value']); // Validate field const validFields: AppStoreVersionLocalizationField[] = [ 'description', 'keywords', 'marketingUrl', 'promotionalText', 'supportUrl', 'whatsNew' ]; if (!validFields.includes(field)) { throw new Error(`Invalid field: ${field}. Must be one of: ${validFields.join(', ')}`); } const requestData: AppStoreVersionLocalizationUpdateRequest = { data: { type: 'appStoreVersionLocalizations', id: localizationId, attributes: { [field]: value } } }; return this.client.patch<AppStoreVersionLocalizationResponse>( `/appStoreVersionLocalizations/${localizationId}`, requestData ); }
- src/index.ts:441-463 (schema)JSON Schema defining the tool's input parameters, validation rules, and description for MCP tool listing.{ name: "update_app_store_version_localization", description: "Update a specific field in an app store version localization", inputSchema: { type: "object", properties: { localizationId: { type: "string", description: "The ID of the app store version localization to update" }, field: { type: "string", enum: ["description", "keywords", "marketingUrl", "promotionalText", "supportUrl", "whatsNew"], description: "The field to update" }, value: { type: "string", description: "The new value for the field" } }, required: ["localizationId", "field", "value"] } },
- src/index.ts:1360-1361 (registration)MCP server request handler registration that dispatches tool calls to the LocalizationHandlers method.case "update_app_store_version_localization": return { toolResult: await this.localizationHandlers.updateAppStoreVersionLocalization(args as any) };
- src/types/localizations.ts:62-68 (schema)TypeScript type definition for valid localization fields used in handler validation.export type AppStoreVersionLocalizationField = | 'description' | 'keywords' | 'marketingUrl' | 'promotionalText' | 'supportUrl' | 'whatsNew';
- src/index.ts:81-81 (registration)Instantiation of the LocalizationHandlers class instance used for all localization tools.this.localizationHandlers = new LocalizationHandlers(this.client);