add_tester_to_group
Add a new tester to an App Store Connect beta testing group by providing their email, first name, last name, and the group ID to enable app testing.
Instructions
Add a new tester to a beta group
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupId | Yes | The ID of the beta group | |
| Yes | Email address of the tester | ||
| firstName | Yes | First name of the tester | |
| lastName | Yes | Last name of the tester |
Implementation Reference
- src/handlers/beta.ts:43-73 (handler)Implementation of the addTesterToGroup handler function that creates a new beta tester and adds them to the specified beta group via the App Store Connect API.
async addTesterToGroup(args: { groupId: string; email: string; firstName: string; lastName: string; }): Promise<ListBetaTestersResponse> { const { groupId, email, firstName, lastName } = args; validateRequired(args, ['groupId', 'email', 'firstName', 'lastName']); const requestBody: AddTesterRequest = { data: { type: "betaTesters", attributes: { email, firstName, lastName }, relationships: { betaGroups: { data: [{ id: groupId, type: "betaGroups" }] } } } }; return this.client.post<ListBetaTestersResponse>('/betaTesters', requestBody); }