# Zoom meeting create polls api is not working

**URL:** <https://devforum.zoom.us/t/zoom-meeting-create-polls-api-is-not-working/45132>\
**Category:** API and Webhooks\
**Created:** [March 8, 2021, 1:43pm UTC](https://devforum.zoom.us/t/zoom-meeting-create-polls-api-is-not-working/45132 "2021-03-08T13:43:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkitchingman](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@jkitchingman](https://devforum.zoom.us/u/jkitchingman)\
**Post date:** [March 8, 2021, 1:43pm UTC](https://devforum.zoom.us/t/zoom-meeting-create-polls-api-is-not-working/45132/1 "2021-03-08T13:43:45Z")

</div>

I have worked on to create polls for meeting using meeting Id but it not not worked it shows **null**  
but when i have tried to create polls for same meeting id from zoom then it created polls successfully. For api it is not working  
i am using following code  
try {  
$response = $this-\>client-\>request(‘POST’, ‘/v2/meetings/91998212431/polls’, [  
“headers” =\> [  
“Authorization” =\> “Bearer $this-\>jwt”  
],  
‘json’ =\> [  
“title” =\> ‘Meeting Usefulness’,  
“questions” =\> [  
array(  
“name”=\> “How useful was this meeting?”,  
“type”=\> “multiple”,  
“answers”=\> [  
“Extremely useful”,  
“Somewhat useful”,  
“Not useful at all”  
]  
)  
]  
],  
]);  
$data = json\_decode($response-\>getBody());  
} catch(Exception $e) {  
return array(‘error’=\> true, ‘msg’ =\> $e-\>getMessage());  
}

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 8, 2021, 10:13pm UTC](https://devforum.zoom.us/t/zoom-meeting-create-polls-api-is-not-working/45132/2 "2021-03-08T22:13:12Z")

</div>

Hey @jkitchingman,

Thank you for reaching out to the Zoom Developer Forum. When I look up the meeting ID included in your post, it looks like the meeting was created on 02/05 and deleted on 03/05. If this wasn’t something that you did, this is likely related to [Meeting ID Expiration](https://support.zoom.us/hc/en-us/articles/201362373-Meeting-ID#h_c73f9b08-c1c0-4a1a-b538-e01ebb98e844).

Please test this with a newly created meeting and let me know if you encounter the same issue.

If that’s not helpful, please provide the full request URL and JSON request body that you’re using as well as the response body that you’re seeing.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![jkitchingman](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@jkitchingman](https://devforum.zoom.us/u/jkitchingman)\
**Post date:** [March 9, 2021, 9:27am UTC](https://devforum.zoom.us/t/zoom-meeting-create-polls-api-is-not-working/45132/3 "2021-03-09T09:27:17Z")

</div>

thanks for the response. I have tested again, now it is working fine.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 9, 2021, 9:08pm UTC](https://devforum.zoom.us/t/zoom-meeting-create-polls-api-is-not-working/45132/4 "2021-03-09T21:08:49Z")

</div>

Hey @jkitchingman,

Excellent, I’m glad to hear that you resolved your issue! Please don’t hesitate to reach out if you encounter any further issues or questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 9, 2021, 7:08am UTC](https://devforum.zoom.us/t/zoom-meeting-create-polls-api-is-not-working/45132/5 "2021-04-09T07:08:53Z")

</div>

Closed on April 9, 2021, 7:08am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
