How To add participant in zoom meeting using rest api

Hi guys
I have created a meeting, now I want to add participant in the created meeting, how I can achieve it . I have zoom pro account. I have created meeting using this endpoint users/me/meetings after that I got meeting id then I have used this endpoint to add registrant meetings/meetingId/registrants and in body I have passed this
public static void createData(Long meetingId) {
WrapperRequest request = new WrapperRequest();
request.email = ‘test@example.com’;
request.first_name = ‘test’;
request.last_name = ‘tesing’;
request.address = ‘123 Main Street’;
request.city = ‘Sample City’;
request.state = ‘Sample State’;
request.zip = ‘12345’;
request.country = ‘Sample Country’;
request.phone = ‘1234567890’;
request.comments = ‘This is a sample comment.’;

    request.custom_questions = new List<CustomQuestion>{
        new CustomQuestion('What is your favorite color?', 'Blue'),
            new CustomQuestion('What is your preferred contact time?', 'Morning')
            };
                
                request.industry = 'Technology';
    request.job_title = 'Software Engineer';
    request.no_of_employees = '50-100';
    request.org = 'Sample Organization';
    request.purchasing_time_frame = 'No timeframe';
    request.role_in_purchase_process = 'Evaluator/Recommender';
    request.language = 'Tr-TR';
    request.auto_approve = false;
    
    String jsonBody = JSON.serialize(request);
    System.debug('Serialized JSON: ' + jsonBody);
    
    
}

please suggest me solution and setting what I have to do next

Hi there,

To add participants to your Zoom meeting, you’ll need to enable registration for the meeting first. Here’s how you can do it:

  1. Enable Registration:
  • While creating or editing the meeting, set the “Registration” option to enabled.
  1. Add Registrants:
  • You can add registrants through various methods, such as:
    • Uploading a CSV file.
    • Collecting information via forms.
    • Fetching data from your database.
  1. Set Approval Type:
  • Choose the approval type based on your preference:
    • Automatic Approval: Registrants are approved instantly.
    • Manual Approval: You’ll need to approve each registrant manually.
  1. Unique Join Link:
  • Once a registrant’s registration is approved, Zoom will send them an email with their unique join link for the meeting.

Based on the code snippet you’ve provided, it looks like you’re using the correct endpoint (meetings/{meetingId}/registrants) to add participants programmatically. Make sure:

  • The meeting has registration enabled.
  • The registrant details passed in the request body meet Zoom’s requirements.

Let me know if you need help with further steps or troubleshooting!

Best regards,
Naeem