Get Notification Subscriptions v2

post

/jderest/v2/notification/subscriptions

Get the list of subscribers to a specific notification.

Request

Supported Media Types
Header Parameters
Body ()
The objects used to request the subscriptions to a notification.
Root Schema : GetSubscriptionsRequest
Type: object
The objects used to request the subscriptions to a notification.
Show Source
  • An identifier for the device making the service call. If not provided, the requesting IP address is used.
  • Specify the environment to use for login. If not specified, the default environment configured for the AIS Server will be used.
  • The HTML (JAS) Server to use for login. If not specified, the default HTML Server configured for the AIS Server will be used.
  • The OMW object name for the notification (notification name is not acceptable).
  • The JD Edwards EnterpriseOne password, which is required if other authentication methods are not being used.
  • Used for logging in with psToken. Primarily used by the HTML Server to establish a session with the AIS Server.
  • The role to use for login. If not specified, the default role configured for the AIS Server will be used.
  • The AIS token, which is required if other authentication methods are not being used.
  • JD Edwards EnterpriseOne username, which is required if other authentication methods are not being used.
  • The user that is the owner of the UDO, if shared use *PUBLIC. The default value is *PUBLIC
Back to Top

Response

Supported Media Types

200 Response

Successful Execution

400 Response

Bad Request - Invalid JSON Input

403 Response

Authorization Failure

415 Response

Invalid Content-Type Header - Must use application/json

444 Response

Invalid Token
Body ()
Root Schema : ServiceErrorResponse
Type: object
Error Response
Show Source

500 Response

Server Failed to Process Request
Body ()
Root Schema : ServiceErrorResponse
Type: object
Error Response
Show Source
Back to Top

Examples

Example Request

The following shows an example of a notification subscriptions request that returns a list of current subscriptions to the notification. The OMW object name of the notification is used for the notificationId. The token passed in this example was received from a separate token request. You can also use other supported authentication methods.


curl -X POST -H "Content-Type:application/json" http://ais_server_url/jderest/v2/notification/subscriptions -d 

{   
    "token": "044QF2SLgaM6vZX081eq8KsVi6XcJiiFL5un5ACH+eBGUg=MDE5MDEyMTY4NzY4NjcwMjI2NzExNzcyNDEwLjE1OS45OS43MzE0NzkxNDU4NDM4ODU=",
    "notificationId":"NTF_1707280008TOOLS",
	"webObjectUser":"*PUBLIC"
}

        

Example Response

The following example shows the contents of the response body.

{
   "subscriptions":    [
            {
         "subscriber": "DEMO",
         "id": "c8093053-3f9b-6d1e-2441-7de9b3eddfff",
         "owner": "*PUBLIC",
         "lastRunTime": 0,
         "lastNotifiedTime": 0,
         "inputsOverride": [         {
            "name": "Input1",
            "value": "6044"
         }]
      },
            {
         "subscriber": "SUSER",
         "id": "d84fd888-aa93-68eb-0e0d-99b16a07dc21",
         "owner": "*PUBLIC",
         "lastRunTime": 0,
         "lastNotifiedTime": 0,
         "inputsOverride":          [
                        {
               "name": "Input1",
               "value": "6001"
            },
                        {
               "name": "Input2",
               "value": "SUSER VAL"
            }
         ]
      },           
            {
         "subscriber": "CTUSER",
         "id": "f30eaf3f-8a28-cf37-fa7f-5412d478ffef",
         "owner": "*PUBLIC",
         "lastRunTime": 0,
         "lastNotifiedTime": 0,
         "inputsOverride": [         {
            "name": "Input1",
            "value": "7500"
         }]
      }
   ],
   "environment": "JDV920",
   "wobnm": "NTF_1707280008TOOLS"
}
        
Back to Top