# segmentationType value for record live stream REST API

**URL:** <https://community.wowza.com/t/segmentationtype-value-for-record-live-stream-rest-api/47761>\
**Category:** Wowza Streaming Engine\
**Created:** [November 28, 2016, 10:20am UTC](https://community.wowza.com/t/segmentationtype-value-for-record-live-stream-rest-api/47761 "2016-11-28T10:20:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keisuke\_Kanao](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@Keisuke\_Kanao](https://community.wowza.com/u/Keisuke_Kanao)\
**Post date:** [November 28, 2016, 10:20am UTC](https://community.wowza.com/t/segmentationtype-value-for-record-live-stream-rest-api/47761/1 "2016-11-28T10:20:57Z")

</div>

Does anyone know what values (strings) for segmentationType we should specify for record live stream REST API?, that is:

POST /v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/instances/{instanceName}/streamrecorders

Creates a new Stream Recorder in the specified Application Instance and starts recording

From Wowza Streaming Engine Manager, in the segmentation tab of live recording dialog, Segmentation Options are:

None

Segment by size

Segment by duration

Segment by schedule

What are the corresponding values that should be specified to segmentationType for the above options?

Actually, I wanted to specify “Segment by duration”, so I tried “Segment by duration”, “duration”, etc. and none of them worked properly.

---

<div class="post-metadata">

**Author:** ![Alex\_C](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Alex\_C](https://community.wowza.com/u/Alex_C)\
**Post date:** [December 3, 2016, 9:51pm UTC](https://community.wowza.com/t/segmentationtype-value-for-record-live-stream-rest-api/47761/2 "2016-12-03T21:51:04Z")

</div>

When creating a Recorder specify the Segmentation Type by using this value: “segmentationType”:“SegmentByDuration”,

Hope this helps.

Regards,

Alex

---

<div class="post-metadata">

**Author:** ![Keisuke\_Kanao](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@Keisuke\_Kanao](https://community.wowza.com/u/Keisuke_Kanao)\
**Post date:** [December 5, 2016, 9:14am UTC](https://community.wowza.com/t/segmentationtype-value-for-record-live-stream-rest-api/47761/3 "2016-12-05T09:14:00Z")

</div>

Thank you for your information.

I confirmed that.

Keisuke Kanao
