Jump to content
Changes to the Jaspersoft community edition download ×

API Jobs Updating Bulk


klinux

Recommended Posts

I'm trying to update a job definition, more precisaly on the mail notification, api don't report any errors, but the parameters aren't updated.

Here is the payload that I'm using, the node of json mailNotification, nothing is updated, but in the alert, some fields are updated:

{
    "description": "This description updated in bulk",
    "mailNotification": {
        "toAddresses": {
            "address": [
                "user@gmail.com"
            ]
        },
        "ccAddresses": {
            "address": ["user2@gmail.com"]
        },
        "subject": "Test, Test",
        "messageText": "Test"
    },
    "alert": {
        "toAddresses": {
            "address": [
                "user3@gmail.com"
            ]
        },
        "messageText": "Log de Status: Sucess",
        "messageTextWhenJobFails": "Log de Status: Failed",
        "includingStackTraceWhenJobFails": true,
        "skipNotificationWhenJobFails": true,
        "subject": "Test Test"
    }
}

There are some mistake in this payload? Or this is a bug in the api /jasperserver/rest_v2/jobs?id=253?

Thank you

 

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