# REST API returns wrong value

**URL:** <https://community.wowza.com/t/rest-api-returns-wrong-value/54368>\
**Category:** Wowza Video (Formerly Streaming Cloud)\
**Created:** [December 24, 2019, 6:32am UTC](https://community.wowza.com/t/rest-api-returns-wrong-value/54368 "2019-12-24T06:32:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jung\_Hoon\_Lee](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@Jung\_Hoon\_Lee](https://community.wowza.com/u/Jung_Hoon_Lee)\
**Post date:** [December 24, 2019, 6:32am UTC](https://community.wowza.com/t/rest-api-returns-wrong-value/54368/1 "2019-12-24T06:32:48Z")

</div>

I’m using the your API.

API is below:

SchedulesApi apiInstance = new SchedulesApi();

String scheduleId = “52dym83z”;

ScheduleState result = apiInstance.showScheduleState(scheduleId);

Current state is ‘Expired’ in web page.

By the way, response value is enabled.

Please check it

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [December 26, 2019, 4:36pm UTC](https://community.wowza.com/t/rest-api-returns-wrong-value/54368/2 "2019-12-26T16:36:05Z")

</div>

I see you had a support ticket for this back in November @Jung Hoon Lee, and our engineer attempted to reach you many times to resolve this in ticket **339025**. He never received a response after 48 hours and the ticket was closed. Is it possible you missed the emails from him?

His last comment in the ticket was:

**Thank you for contacting Wowza Media Systems Developer support. To further review this issue, do you receive any errors if you use our default schedule located here:**

**[https://github.com/WowzaMediaSystems/wsc-sdk-java/blob/master/Examples/Schedule/CreateASchedule.java](https://github.com/WowzaMediaSystems/wsc-sdk-java/blob/master/Examples/Schedule/CreateASchedule.java)**

**\*You’ll need to adjust the startTranscoder and endTranscoder times to start a recording to a time close to your testing time.**

**\*\*\*\*\*\*\*\*\*\*\***

If you have already tested with the GitHub sample and still need help, tech support will you need you to submit a new ticket to see why you are getting that state of “expired”. They cannot determine the issue without seeing more through a ticket. Thank you.
