Jump to content

Want to send email via REST API v2

Ankur Gupta

Recommended Posts

Hi Folks, 

I am trying to send email via REST API v2, using the community Jasperserver 7.8.0. 
I an using postmant to test the request, the JSON request is as below. - 

I am hitting the REST API endpoint jobs 


    "label": "Sample Job Name",
    "description": "Sample desctiption",
    "mailNotification": {
      "bccAddresses": [],
      "ccAddresses": [],
      "includingStackTraceWhenJobFails": "false",
      "messageText": "tes msg",
      "resultSendType": "SEND_ATTACHMENT",
      "skipEmptyReports": "false",
      "skipNotificationWhenJobFails": "false",
      "subject": "test",
      "toAddresses": {
         "address": "ankur.gupta.aug@gmail.com"
      "version": "0"
   "source": {
        "reportUnitURI": "/reports/Summary/Summary_Appointment_By_Owner_Type_Status",
        "parameters": {
            "parameterValues": {
                "UserId": [37540],
                "ParentId": [37540],
                "Param1": [],
                "FromDate" : '2021-05-01',
                "ToDate" : '2021-05-31'
    "baseOutputFilename": "testoo",
    "outputTimeZone": "America/Los_Angeles",
    "repositoryDestination": {
      "folderURI": "/reports",
      "overwriteFiles": "true",
      "saveToRepository": "false",
      "sequentialFilenames": "false",
      "usingDefaultReportOutputFolderURI": "false"
    } ,
    "outputFormats": {
        "outputFormat": ["PDF", "XLS"]
     "trigger": {
        "simpleTrigger": {
            "timezone": "America/Los_Angeles",
            "startType": 1,
            "startDate": null,
            "occurrenceCount": 1

The error which I get is - 

serialization.errorThere was an error on the server. Try again or contact site administrators.

Any thoughts on this, maybe I have missed something in the request creation. 



Ankur Gupta



Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...