@@ -11,10 +11,11 @@ export const invitePerson = async ( group?: string, token?: string ) => { + return await axios.post<{ email: string; token_limit: string }, AxiosResponse>( API_URL + '/auth/business-host', { - parent_company: group === '' ? null : group, + group: group === '' ? null : group, email, account_privileges: Object.entries(inviteRoles).find(([key, value]) => value === role)![0], },