Execute a Notification v2
/v2/notification/{notification}
Request
- application/json
-
notification(required): string
The notification name or OMW object name.
-
jde-AIS-Auth: string
Token
-
jde-AIS-Auth-Device: string
Device Name
-
jde-AIS-MonitorOnStart: boolean
Monitor on Start
-
jde-AIS-MonitorRequest: string
Monitor RequestAllowed Values:
[ "monitorRequest", "monitorRequestIO", "monitorRequestAndSteps", "monitorRequestIOAndSteps", "monitorRequestAndStepsIO", "monitorRequestIOAndStepsIO" ]
object
Response
- application/json
200 Response
400 Response
403 Response
415 Response
444 Response
object
-
errorText:
string
-
exception:
string
The class of the exception if an exception was thrown.
-
exceptionId:
string
ExceptionId, only if an exception record was written to the F980060
-
message:
string
Details about the error.
-
status:
string
Allowed Values:
[ "ERROR", "WARNING" ]
Status determined by exception handling -
timeStamp:
string
The timestamp indicating the time the error message was returned.
-
type:
string
Optional type of error
-
userDefinedErrorText:
string
Optional error text added to an orchestration step.
500 Response
object
-
errorText:
string
-
exception:
string
The class of the exception if an exception was thrown.
-
exceptionId:
string
ExceptionId, only if an exception record was written to the F980060
-
message:
string
Details about the error.
-
status:
string
Allowed Values:
[ "ERROR", "WARNING" ]
Status determined by exception handling -
timeStamp:
string
The timestamp indicating the time the error message was returned.
-
type:
string
Optional type of error
-
userDefinedErrorText:
string
Optional error text added to an orchestration step.
Examples
Example Request with OMW Object Name
The following shows an example of a notification request that immediately executes individual notifications. The token passed in this example was received from a separate token request. You can use other supported authentication methods.
curl -X POST -H "Content-Type:application/json" http://ais_server_url/jderest/v2/notification/NTF_1707280008TOOLS -d { "token": "044QF2SLgaM6vZX081eq8KsVi6XcJiiFL5un5ACH+eBGUg=MDE5MDEyMTY4NzY4NjcwMjI2NzExNzcyNDEwLjE1OS45OS43MzE0NzkxNDU4NDM4ODU=" }
Example Response
The following example shows the contents of the response body.
{ "success": true, "received": false }
Example Request with Notification Name
curl -X POST -H "Content-Type:application/json" http://ais_server_url/jderest/v2/notification/MyTestNotification -d { "token": "044QF2SLgaM6vZX081eq8KsVi6XcJiiFL5un5ACH+eBGUg=MDE5MDEyMTY4NzY4NjcwMjI2NzExNzcyNDEwLjE1OS45OS43MzE0NzkxNDU4NDM4ODU=" }
Example Response
The following example shows the contents of the response body.
{ "success": false, "received": true }
Example Error Response
The following example shows the contents of the response body when there are no subscribers to a notification. Other error scenarios, like missing dependent UDO objects, will result in error notifications sent to subscribers after notification execution.
{ "message": "No subscriptions: NTF_1708280001TOOLS. Add at least one subscription to execute the notification.", "exception": "java.lang.Exception", "timeStamp": "2017-08-28:13.47.17" }