# REST API Recording doesnt work

**URL:** <https://community.wowza.com/t/rest-api-recording-doesnt-work/39627>\
**Category:** Wowza Developer Dojo\
**Created:** [July 10, 2015, 2:04pm UTC](https://community.wowza.com/t/rest-api-recording-doesnt-work/39627 "2015-07-10T14:04:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![George\_Baker](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@George\_Baker](https://community.wowza.com/u/George_Baker)\
**Post date:** [July 10, 2015, 2:04pm UTC](https://community.wowza.com/t/rest-api-recording-doesnt-work/39627/1 "2015-07-10T14:04:39Z")

</div>

This was resolved .

---

<div class="post-metadata">

**Author:** ![Patrick\_Himes](https://avatars.discourse-cdn.com/v4/letter/p/73ab20/32.png) [@Patrick\_Himes](https://community.wowza.com/u/Patrick_Himes)\
**Post date:** [July 15, 2015, 3:00pm UTC](https://community.wowza.com/t/rest-api-recording-doesnt-work/39627/2 "2015-07-15T15:00:58Z")

</div>

> This was resolved .

What was your solution? I’m also getting **Unknown action: stopRecording** when I use the REST API to stop a recording.

```auto
<wmsResponse>
<success>false</success>
<message>Unknown action: stopRecording</message>
</wmsResponse>

```

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [July 16, 2015, 9:41am UTC](https://community.wowza.com/t/rest-api-recording-doesnt-work/39627/3 "2015-07-16T09:41:12Z")

</div>

Hello

You can stop a recording by following the given example [here](https://www.wowza.com/docs/how-to-use-curl-to-query-wowza-rest-api#splitrecord).

Let me know if you have any further problems.

Thanks,

Matt

---

<div class="post-metadata">

**Author:** ![Patrick\_Himes](https://avatars.discourse-cdn.com/v4/letter/p/73ab20/32.png) [@Patrick\_Himes](https://community.wowza.com/u/Patrick_Himes)\
**Post date:** [July 16, 2015, 9:04am UTC](https://community.wowza.com/t/rest-api-recording-doesnt-work/39627/4 "2015-07-16T09:04:32Z")

</div>

> Hello
> 
> You can stop a recording by following the given example [here](https://www.wowza.com/docs/how-to-use-curl-to-query-wowza-rest-api#splitrecord).
> 
> Let me know if you have any further problems.
> 
> Thanks,
> 
> Matt

Thank you. Using **curl** with the header was the trick. I’d made the mistake of just pasting the url into a browser and expecting it to work.

```auto
curl -X PUT --header 'Accept:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_/streamrecorders/MyDemoStream.stream/actions/stopRecording

```
