# Patch Live Stream with Stream URL and Stream Key

**URL:** <https://devforum.zoom.us/t/patch-live-stream-with-stream-url-and-stream-key/35710>\
**Category:** API and Webhooks\
**Created:** [November 11, 2020, 1:50pm UTC](https://devforum.zoom.us/t/patch-live-stream-with-stream-url-and-stream-key/35710 "2020-11-11T13:50:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HenryW](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/henryw/32/18127_2.png) [@HenryW](https://devforum.zoom.us/u/HenryW)\
**Post date:** [November 11, 2020, 1:50pm UTC](https://devforum.zoom.us/t/patch-live-stream-with-stream-url-and-stream-key/35710/1 "2020-11-11T13:50:23Z")

</div>

**Description**  
In testing API calls to Patch the live stream details of a meeting, I am receiving a 4927 error any time the meeting is not started. From previous investigation I expected to be able to update live stream details of any meetings. Which use case is correct?

**Error**  
4927,\“message\”:\“Meeting 81,759,171,513 has not started.\”}

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
Oauth

**Which Endpoint/s?**  
PATCH # /meetings/{meetingId}/livestream

> **[Update a Live Stream - Meetings - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetinglivestreamupdate)**
>
> Zoom allows users to live stream a meeting to a custom platform. Use this API to update a meeting's live stream information.
> Prerequisites:
> 
> Meeting hos...

**How To Reproduce (If applicable)**  
Typically a call to /meetings/{meetingId}/livestream to update stream\_url and stream\_key, where body is:  
JSON.stringify({stream\_url: “foo”,stream\_key:“bar”})

**Screenshots (If applicable)**  
If applicable, add screenshots to help explain your problem.

**Additional context**  
Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [November 12, 2020, 5:13pm UTC](https://devforum.zoom.us/t/patch-live-stream-with-stream-url-and-stream-key/35710/2 "2020-11-12T17:13:35Z")

</div>

Hi @HenryW,

Are the meeting and livestream both running when you submit this PATCH request?

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![HenryW](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/henryw/32/18127_2.png) [@HenryW](https://devforum.zoom.us/u/HenryW)\
**Post date:** [November 12, 2020, 5:16pm UTC](https://devforum.zoom.us/t/patch-live-stream-with-stream-url-and-stream-key/35710/3 "2020-11-12T17:16:35Z")

</div>

The use-case is this: I set up my livestream ingest ahead of the meeting so I know the stream\_url and stream\_key I’m going to stream to. I want to update the **upcoming** meeting via the ` /meetings/{meetingId}/livestream` call with those values. The meeting is **not** live when I make the patch call.

On further testing, this call appears to work on all types of meetings. The call that returns the 4927 is this:

`/meetings/{meetingId}/livestream/status` (with a body of `action:start` or `action:stop`)

Which makes more sense. Can you confirm that ` /meetings/{meetingId}/livestream` can be run against any meeting but ` /meetings/{meetingId}/livestream/status` can only be run against a ‘live’ meeting?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 13, 2020, 11:28pm UTC](https://devforum.zoom.us/t/patch-live-stream-with-stream-url-and-stream-key/35710/4 "2020-11-13T23:28:55Z")

</div>

Hey @HenryW,

> [@HenryW](#):
>
> Can you confirm that ` /meetings/{meetingId}/livestream` can be run against any meeting but ` /meetings/{meetingId}/livestream/status` can only be run against a ‘live’ meeting?

Yes, we do confirm this. 🙂

Thanks,  
Tommy

---

<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:** [December 14, 2020, 9:29am UTC](https://devforum.zoom.us/t/patch-live-stream-with-stream-url-and-stream-key/35710/5 "2020-12-14T09:29:02Z")

</div>

Closed on December 14, 2020, 9:29am UTC

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