Jump to content
We've recently updated our Privacy Statement, available here ×
  • Listing All Calendar Names for specific schedule


    Prasad B
    • Features: Scheduler Version: v9.0.0, v8.2.0, v8.1.0, v8.0 Product: JasperReports® Server

    Question: How do we list all calendar names for a specific schedule? 

    Answer: The following method returns the list of all calendar names that were added to the scheduler.

    Method: GET  URL: http://<host>:<port>/jasperserver[-pro]/rest_v2/jobs/calendars/?<argument>

    The arguments required for this API is as below:

    Argument: calendar Type,  Type/Value: optional string, Description: A type of calendar to return: annual, cron, daily, holiday, monthly, or weekly. You may specify only one calendarType parameter. When calendarType isn't specified, all calendars names are returned. If calendarType has an invalid value, an empty collection is returned.

    The Return values for this request is as below:
    a) For Success: 200 OK – Body contains a list of calendar names.
    b) For Failure: 401 Unauthorized

    The list of calendar names in the result has the following format in XML:

    <calendarNameList>
      <calendarName>name1</calendarName>
      <calendarName>name2</calendarName>
    </calendarNameList>


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...