API Jobs Updating Bulk in Products Posted June 26, 2017 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
API Jobs Updating Bulk
in Products
Posted
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