apple_create_version
Create a new App Store version for submission by specifying app ID, version string, platform, and release type.
Instructions
Create a new App Store version for submission
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | App ID | |
| versionString | Yes | Version (e.g. 1.0.0) | |
| platform | No | IOS | |
| releaseType | No | ||
| earliestReleaseDate | No | ISO 8601 date for scheduled release | |
| copyright | No |
Implementation Reference
- src/apple/tools.ts:143-176 (handler)The tool 'apple_create_version' is defined as a 'ToolDef' object in src/apple/tools.ts, including its schema, description, and handler implementation.
const createVersion: ToolDef = { name: 'apple_create_version', description: 'Create a new App Store version for submission', schema: z.object({ appId: z.string().describe('App ID'), versionString: z.string().describe('Version (e.g. 1.0.0)'), platform: z.enum(['IOS', 'MAC_OS', 'TV_OS', 'VISION_OS']).default('IOS'), releaseType: z.enum(['MANUAL', 'AFTER_APPROVAL', 'SCHEDULED']).optional(), earliestReleaseDate: z.string().optional().describe('ISO 8601 date for scheduled release'), copyright: z.string().optional(), }), handler: async (client, args) => { const attributes: any = { versionString: args.versionString, platform: args.platform, }; if (args.releaseType) attributes.releaseType = args.releaseType; if (args.earliestReleaseDate) attributes.earliestReleaseDate = args.earliestReleaseDate; if (args.copyright) attributes.copyright = args.copyright; return client.request('/appStoreVersions', { method: 'POST', body: { data: { type: 'appStoreVersions', attributes, relationships: { app: { data: { type: 'apps', id: args.appId } }, }, }, }, }); }, };