Create/Modify Subscriber
The Create/Modify Subscriber API is used to create a new subscriber and also modify an already existing subscriber.
Important: Only Create/Modify Subscriber API is used to create and update a subscriber
URL
The HTTP URL for Create/Modify Subscriber API is:
This service implements Gateway Filter for Authentication to authenticate access of the service by a user.
Method
POST
Header
The payload’s request header includes Content-Type as application/json;charset=UTF-8.
Input Parameters
The following fields are input parameters:
Input Parameter | Level – Two | Required | Type | Description |
---|---|---|---|---|
subscriptionService | Includes an array of subscribe | |||
subscribe | An array of subscribe objects | |||
sid | Yes | long | The security ID for the subscriber | |
appId | Yes | long | The unique ID assigned to an app | |
ufid | Optional | string | The User Friendly Identifier or UFID is used when you subscribe to Volt MX Foundry Engagement Services. Based on your requirement, you can provide a UFID. It is alphanumeric, for example xxx@voltmx.com or 2890XZCY. It can be used to map devices to the user using the value as a reconciliation key | |
osType | Yes | string | Supported operating system. | |
deviceId | Yes | string | Unique ID assigned to a device. | |
deviceName | Optional | string | Name of the device |
Sample Request
Note: You need to use specific key words while providing parameters for osType in the sample request. The sample payload for all the osType is given below.
Sample Responses
Response Status
Code | Description |
---|---|
Status 200 | Subscription successful |
Status 400 | Invalid Volt MX application IDInvalid Request. SID Cannot be emptyError occurred at property subscriptionService->subscribe->osTypeInvalid Request. DEVICEID Cannot be empty |
Status 401 | Unauthorized request |
Status 500 | Server failure to process request |