Jump to content
We've recently updated our Privacy Statement, available here ×

Bulk Update via API


tommy.curnyn

Recommended Posts

Hi,

I'm running an API request to bulk update some of my schedules (jobs) and I'm referencing the following job IDs:

/jasperserver/rest_v2/jobs?id=1655&id=1656

I'm passing the following JSON in my request:

{
    "alert": {
        "toAddresses": {
                "address": ["UpdateMe@mail.com"]
                
            }
    }
}

 And that works fine - it updates the To address on the 'Send job status notifications' section of my 2 schedules.

What I want to do is update the To address on the 'Send report when scheduler runs' section of my schedules (i.e. the recipient of the report). So I'm using this:

{
    "mailNotification": {
        "toAddresses": {
                "address": ["UpdateMe@mail.com"]
                
            }
    }
}

I'm getting a 200 OK but the email address isn't being updated when I look at the schedules on the UI.

Any suggestions would be much appreciated!

Thanks,

Tommy

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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