Create a Notification Specification

post

/bcws/webresources/v1.0/notificationManagement/notificationSpec

Creates a notification specification.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/xml ()
Root Schema : schema
Type: object
Show Source
Nested Schema : advanceNotifications
Type: array
Show Source
Nested Schema : criteria
Type: array
Show Source
Nested Schema : deliveryMethods
Type: array
Show Source
Nested Schema : deliverySpec
Type: array
Show Source
Nested Schema : NotificationDeliverySchedule
Type: object
Show Source
Nested Schema : NotificationCriteria
Type: object
Show Source
Nested Schema : NotificationDeliveryMethod
Type: object
Show Source
Nested Schema : NotificationDeliverySpec
Type: object
Show Source
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : advanceNotifications
Type: array
Show Source
Nested Schema : criteria
Type: array
Show Source
Nested Schema : deliveryMethods
Type: array
Show Source
Nested Schema : deliverySpec
Type: array
Show Source
Nested Schema : NotificationDeliverySchedule
Type: object
Show Source
Nested Schema : NotificationCriteria
Type: object
Show Source
Nested Schema : NotificationDeliveryMethod
Type: object
Show Source
Nested Schema : NotificationDeliverySpec
Type: object
Show Source
Back to Top

Response

201 Response

The notification specification was created successfully, and its ID was returned.

500 Response

An error occurred. An exception has been raised.
Back to Top

Examples

This example shows how to create a notification specification by submitting a POST request on the REST resource using cURL. For more information about cURL, see "Use cURL".

cURL Command

curl -X POST 'http://hostname:port/bcws/webresources/version/notificationManagement/notificationSpec' -H 'content-type: application/json' -d @createNotificationSpec.json

where:

  • hostname is the URL for the Billing Care REST server.
  • port is the port for the Billing Care REST server.
  • version is the version of the API you're using, such as v1.0.
  • createNotificationSpec.json is the JSON file that specifies the notification specification to create.

Example of Request Body

This example shows the contents of the createNotificationSpec.json file sent as the request body.

{
    "name": "New Notification",
    "expiresAt": "2022-10-28T09:28:00.890Z",
    "deliveryControlFlag":"SUPPRESS", 
    "descr": "descr",
    "scope": "USER",
    "startsAt": "2021-11-21T09:28:00.890Z",
    "systemEvent": "New Notification",
    "triggerType": "SYSTEM", 
    "type": "REALTIME",
    "criteria": [ 
    {
        "dataType": "STR",
        "value": "123",
        "key": "/account.ACCOUNT_NO", 
        "operator": "EQ"
    }
    ],   
    "deliverySpec": [ 
    {
        "dayOfWeek": "4", 
        "dayOfMonth": "27",  
        "firstTransaction": "MONTHS",
        "deliveryPeriodEnd": "8:30"  
    }
    ],

    "deliveryMethods": [ 
    {
        "name": "SMS",
        "id": 2, 
        "status": "ACTIVE"
    }
    ],  
    "advanceNotifications": [ 
    {
        "offsetUnit": "DAYS",
        "offsetValue": 1
    } 
    ]
}

Example of Response Body

This example shows the contents of the response body in JSON format.

{
	"id": "0.0.0.1+-config-notification_spec+2865053",
	"href": "http://hostname:port/bcws/webresources/version/notificationSpec/0.0.0.1+-config-notification_spec+2865053"
}
Back to Top