Registrant Update Status return Bad Request

Package : Zoom Pro
Meetings API

I m trying to approve user thorugh the web api

then i got this response. please help me

object(Illuminate\Http\Client\Response)[1308]
protected ‘response’ =>
object(GuzzleHttp\Psr7\Response)[1362]
private ‘reasonPhrase’ => string ‘Bad Request’ (length=11)
private ‘statusCode’ => int 400
private ‘headers’ =>
array (size=13)
‘Date’ =>
array (size=1)

‘Content-Type’ =>
array (size=1)

‘Content-Length’ =>
array (size=1)

‘Connection’ =>
array (size=1)

‘Server’ =>
array (size=1)

‘x-zm-trackingid’ =>
array (size=1)

‘X-Content-Type-Options’ =>
array (size=1)

‘Cache-Control’ =>
array (size=1)

‘Pragma’ =>
array (size=1)

‘Expires’ =>
array (size=1)

‘Set-Cookie’ =>
array (size=5)

‘Vary’ =>
array (size=3)

‘X-RateLimit-Category’ =>
array (size=1)

private ‘headerNames’ =>
array (size=13)
‘date’ => string ‘Date’ (length=4)
‘content-type’ => string ‘Content-Type’ (length=12)
‘content-length’ => string ‘Content-Length’ (length=14)
‘connection’ => string ‘Connection’ (length=10)
‘server’ => string ‘Server’ (length=6)
‘x-zm-trackingid’ => string ‘x-zm-trackingid’ (length=15)
‘x-content-type-options’ => string ‘X-Content-Type-Options’ (length=22)
‘cache-control’ => string ‘Cache-Control’ (length=13)
‘pragma’ => string ‘Pragma’ (length=6)
‘expires’ => string ‘Expires’ (length=7)
‘set-cookie’ => string ‘Set-Cookie’ (length=10)
‘vary’ => string ‘Vary’ (length=4)
‘x-ratelimit-category’ => string ‘X-RateLimit-Category’ (length=20)
private ‘protocol’ => string ‘1.1’ (length=3)
private ‘stream’ =>
object(GuzzleHttp\Psr7\Stream)[1361]
private ‘stream’ => resource(15, stream)
private ‘size’ => null
private ‘seekable’ => boolean true
private ‘readable’ => boolean true
private ‘writable’ => boolean true
private ‘uri’ => string ‘php://temp’ (length=10)
private ‘customMetadata’ =>
array (size=0)

protected ‘decoded’ => null
public ‘cookies’ =>
object(GuzzleHttp\Cookie\CookieJar)[1340]
private ‘cookies’ =>
array (size=5)
0 =>
object(GuzzleHttp\Cookie\SetCookie)[1364]

1 =>
object(GuzzleHttp\Cookie\SetCookie)[1358]

2 =>
object(GuzzleHttp\Cookie\SetCookie)[1369]

3 =>
object(GuzzleHttp\Cookie\SetCookie)[1368]

4 =>
object(GuzzleHttp\Cookie\SetCookie)[1370]

private ‘strictMode’ => boolean false
public ‘transferStats’ =>
object(GuzzleHttp\TransferStats)[1363]
private ‘request’ =>
object(GuzzleHttp\Psr7\Request)[1357]
private ‘method’ => string ‘PUT’ (length=3)
private ‘requestTarget’ => null
private ‘uri’ =>
object(GuzzleHttp\Psr7\Uri)[1347]

private ‘headers’ =>
array (size=5)

private ‘headerNames’ =>
array (size=5)

private ‘protocol’ => string ‘1.1’ (length=3)
private ‘stream’ =>
object(GuzzleHttp\Psr7\Stream)[1348]

private ‘response’ =>
object(GuzzleHttp\Psr7\Response)[1362]
private ‘reasonPhrase’ => string ‘Bad Request’ (length=11)
private ‘statusCode’ => int 400
private ‘headers’ =>
array (size=13)

private ‘headerNames’ =>
array (size=13)

private ‘protocol’ => string ‘1.1’ (length=3)
private ‘stream’ =>
object(GuzzleHttp\Psr7\Stream)[1361]

private ‘transferTime’ => float 0.901264
private ‘handlerStats’ =>
array (size=38)
‘url’ => string ‘https://api.zoom.us/v2//meetings/96564693076/registrants/status’ (length=63)
‘content_type’ => string ‘application/xml;charset=UTF-8’ (length=29)
‘http_code’ => int 400
‘header_size’ => int 994
‘request_size’ => int 401
‘filetime’ => int -1
‘ssl_verify_result’ => int 0
‘redirect_count’ => int 0
‘total_time’ => float 0.901264
‘namelookup_time’ => float 0.010937
‘connect_time’ => float 0.224904
‘pretransfer_time’ => float 0.67133
‘size_upload’ => float 72
‘size_download’ => float 148
‘speed_download’ => float 164
‘speed_upload’ => float 79
‘download_content_length’ => float 148
‘upload_content_length’ => float 72
‘starttransfer_time’ => float 0.900894
‘redirect_time’ => float 0
‘redirect_url’ => string ‘’ (length=0)
‘primary_ip’ => string ‘52.202.62.238’ (length=13)
‘certinfo’ =>
array (size=0)

‘primary_port’ => int 443
‘local_ip’ => string ‘192.168.1.6’ (length=11)
‘local_port’ => int 60347
‘http_version’ => int 2
‘protocol’ => int 2
‘ssl_verifyresult’ => int 0
‘scheme’ => string ‘HTTPS’ (length=5)
‘appconnect_time_us’ => int 671187
‘connect_time_us’ => int 224904
‘namelookup_time_us’ => int 10937
‘pretransfer_time_us’ => int 671330
‘redirect_time_us’ => int 0
‘starttransfer_time_us’ => int 900894
‘total_time_us’ => int 901264
‘appconnect_time’ => float 0.671187
private ‘handlerErrorData’ => int 0

I think, i can see similar issue on this thread. but i m using JWT method

Hi @sameera,

Can you please share your request body in JSON format so that I can help debug? It should look something like this, depending on which registration status you want the user to have:

HTTP Method: PUT
Request URL: https://api.zoom.us/v2/meetings/{meetingId}/registrants/status
Request Body:

{
  "action": "approve",
  "registrants": [
    {
      "id": "z3ASr6AaR8uAysPo0a2zNw",
      "email": "someone@example.com"
    }
  ]
}

Let me know if this helps,
Will