enable_bundle_capability
Enable specific capabilities like iCloud, Push Notifications, or In-App Purchase for an App Store Connect bundle ID to configure app functionality.
Instructions
Enable a capability for a bundle ID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bundleIdId | Yes | The ID of the bundle ID | |
| capabilityType | Yes | The type of capability to enable | |
| settings | No | Optional capability settings |
Implementation Reference
- src/handlers/bundles.ts:93-121 (handler)The core handler function enableBundleCapability that validates input, constructs the EnableCapabilityRequest, and posts to the App Store Connect /bundleIdCapabilities endpoint to enable the specified capability for a bundle ID.
async enableBundleCapability(args: { bundleIdId: string; capabilityType: CapabilityType; settings?: CapabilitySetting[]; }): Promise<any> { const { bundleIdId, capabilityType, settings } = args; validateRequired(args, ['bundleIdId', 'capabilityType']); const requestBody: EnableCapabilityRequest = { data: { type: "bundleIdCapabilities", attributes: { capabilityType, settings }, relationships: { bundleId: { data: { id: bundleIdId, type: "bundleIds" } } } } }; return this.client.post('/bundleIdCapabilities', requestBody); }