approval_type always return 2 even if i send value 0. | Community
Skip to main content
Newcomer
July 16, 2021
Solved

approval_type always return 2 even if i send value 0.

  • July 16, 2021
  • 2 replies
  • 3 views

Hi,

 

When I create a meeting and enter approval_type = 0 it always returns approval_type=2. It´s a paid account. Here's the json sent and returned:

 

Sent Json:

{
  "topic""Test API Meeting with registration required",
  "type"2,
  "start_time""2021-08-16T18:00:00Z",
  "duration"120,
  "settings": {
    "approval_type"0,
    "close_registration"true
  }
}
 
Returned Json:
{
    "uuid""QH5Ysy0hSciOdqNEhbDvHQ==",
    "id"94181754827,
    "host_id""H7jcsKlmSTCs1W3W3G1Sww",
    "host_email""xxxx",
    "topic""Test API Meeting with registration required",
    "type"2,
    "status""waiting",
    "start_time""2021-08-16T18:00:00Z",
    "duration"120,
    "timezone""America/Sao_Paulo",
    "created_at""2021-07-16T11:52:29Z",
    "start_url""xxx",
    "join_url""xxx",
    "settings": {
        "host_video"true,
        "participant_video"true,
        "cn_meeting"false,
        "in_meeting"false,
        "join_before_host"false,
        "jbh_time"0,
        "mute_upon_entry"false,
        "watermark"false,
        "use_pmi"false,
        "approval_type"2,
        "audio""both",
        "auto_recording""none",
        "enforce_login"false,
        "enforce_login_domains""",
        "alternative_hosts""",
        "close_registration"true,
        "show_share_button"true,
        "allow_multiple_devices"true,
        "registrants_confirmation_email"true,
        "waiting_room"true,
        "request_permission_to_unmute_participants"false,
        "global_dial_in_countries": [
            "US"
        ]
        "contact_name""XXXX",
        "contact_email""XXXX",
        "registrants_email_notification"true,
        "meeting_authentication"false,
        "encryption_type""enhanced_encryption",
        "approved_or_denied_countries_or_regions": {
            "enable"false
        },
        "breakout_room": {
            "enable"false
        },
        "alternative_hosts_email_notification"true,
        "device_testing"false
    }
}
 

I've seen several cases that occur in the same way. The PMI parameter for schedule meeting is disabled too.

The goal is to control access to meetings.

 

The test are made using postman with the parameters:

url:  users/me/meetings

post

JWT Bearer.

 

Tks.

 
    Best answer by colegs

    MarcusPaulo, welcome to the community! 

    I believe that the issue is related to the fact that you are using the "me" parameter with a JWT call.  Since the JWT token is account wide, it would not necessarily know which user you are trying to schedule the meeting for (and that they are licensed).  Could you please retry the call using the email address of the user instead of "me" and let us know if that changes anything?  

    Thanks.

    2 replies

    colegsAnswer
    Community Champion | Employee
    July 16, 2021

    MarcusPaulo, welcome to the community! 

    I believe that the issue is related to the fact that you are using the "me" parameter with a JWT call.  Since the JWT token is account wide, it would not necessarily know which user you are trying to schedule the meeting for (and that they are licensed).  Could you please retry the call using the email address of the user instead of "me" and let us know if that changes anything?  

    Thanks.

    Newcomer
    July 19, 2021

    Thank you @colegs !