Retrieve a NotificationPreference for the User
A notification preference object
Bad Request. The request parameters (or body) were malformed or invalid. Fix the issues with the request and try again.
Unauthorized request
Not Found. The specified resource (or resource referred to by id) was not found
curl -i -X GET \ 'http://notification-service:8080/notification-service/v1/preference/{username}/{authenticator}' \ -H 'x-auth-token: YOUR_API_KEY_HERE'
{- "id": 0,
- "active": true,
- "userKey": {
- "username": "string",
- "authenticator": "string"
}, - "orgId": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "categoryPreferences": [
- {
- "id": 0,
- "active": true,
- "event": {
- "id": 0,
- "active": true,
- "productName": "string",
- "productKey": "string",
- "category": "string",
- "event": "string",
- "eventKey": "string",
- "displayable": true,
- "defaultPrefValue": true,
- "createdBy": "string",
- "createdInstant": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "string",
- "lastUpdatedInstant": "2019-08-24T14:15:22Z"
}, - "digestible": true,
- "digestFrequency": 0,
- "digestFrequencyUnit": "DAYS",
- "categoryMethodPreferences": [
- {
- "id": 0,
- "active": true,
- "method": "EMAIL",
- "createdBy": "string",
- "createdInstant": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "string",
- "lastUpdatedInstant": "2019-08-24T14:15:22Z"
}
], - "createdBy": "string",
- "createdInstant": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "string",
- "lastUpdatedInstant": "2019-08-24T14:15:22Z"
}
], - "productEventsMap": {
- "property1": {
- "property1": [
- {
- "id": 0,
- "active": true,
- "event": {
- "id": 0,
- "active": true,
- "productName": "string",
- "productKey": "string",
- "category": "string",
- "event": "string",
- "eventKey": "string",
- "displayable": true,
- "defaultPrefValue": true,
- "createdBy": "string",
- "createdInstant": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "string",
- "lastUpdatedInstant": "2019-08-24T14:15:22Z"
}, - "digestible": true,
- "digestFrequency": 0,
- "digestFrequencyUnit": "DAYS",
- "categoryMethodPreferences": [
- {
- "id": 0,
- "active": true,
- "method": "EMAIL",
- "createdBy": "string",
- "createdInstant": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "string",
- "lastUpdatedInstant": "2019-08-24T14:15:22Z"
}
], - "createdBy": "string",
- "createdInstant": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "string",
- "lastUpdatedInstant": "2019-08-24T14:15:22Z"
}
], - "property2": [
- {
- "id": 0,
- "active": true,
- "event": {
- "id": 0,
- "active": true,
- "productName": "string",
- "productKey": "string",
- "category": "string",
- "event": "string",
- "eventKey": "string",
- "displayable": true,
- "defaultPrefValue": true,
- "createdBy": "string",
- "createdInstant": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "string",
- "lastUpdatedInstant": "2019-08-24T14:15:22Z"
}, - "digestible": true,
- "digestFrequency": 0,
- "digestFrequencyUnit": "DAYS",
- "categoryMethodPreferences": [
- {
- "id": 0,
- "active": true,
- "method": "EMAIL",
- "createdBy": "string",
- "createdInstant": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "string",
- "lastUpdatedInstant": "2019-08-24T14:15:22Z"
}
], - "createdBy": "string",
- "createdInstant": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "string",
- "lastUpdatedInstant": "2019-08-24T14:15:22Z"
}
]
}, - "property2": {
- "property1": [
- {
- "id": 0,
- "active": true,
- "event": {
- "id": 0,
- "active": true,
- "productName": "string",
- "productKey": "string",
- "category": "string",
- "event": "string",
- "eventKey": "string",
- "displayable": true,
- "defaultPrefValue": true,
- "createdBy": "string",
- "createdInstant": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "string",
- "lastUpdatedInstant": "2019-08-24T14:15:22Z"
}, - "digestible": true,
- "digestFrequency": 0,
- "digestFrequencyUnit": "DAYS",
- "categoryMethodPreferences": [
- {
- "id": 0,
- "active": true,
- "method": "EMAIL",
- "createdBy": "string",
- "createdInstant": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "string",
- "lastUpdatedInstant": "2019-08-24T14:15:22Z"
}
], - "createdBy": "string",
- "createdInstant": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "string",
- "lastUpdatedInstant": "2019-08-24T14:15:22Z"
}
], - "property2": [
- {
- "id": 0,
- "active": true,
- "event": {
- "id": 0,
- "active": true,
- "productName": "string",
- "productKey": "string",
- "category": "string",
- "event": "string",
- "eventKey": "string",
- "displayable": true,
- "defaultPrefValue": true,
- "createdBy": "string",
- "createdInstant": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "string",
- "lastUpdatedInstant": "2019-08-24T14:15:22Z"
}, - "digestible": true,
- "digestFrequency": 0,
- "digestFrequencyUnit": "DAYS",
- "categoryMethodPreferences": [
- {
- "id": 0,
- "active": true,
- "method": "EMAIL",
- "createdBy": "string",
- "createdInstant": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "string",
- "lastUpdatedInstant": "2019-08-24T14:15:22Z"
}
], - "createdBy": "string",
- "createdInstant": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "string",
- "lastUpdatedInstant": "2019-08-24T14:15:22Z"
}
]
}
}, - "createdBy": "string",
- "createdInstant": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": "string",
- "lastUpdatedInstant": "2019-08-24T14:15:22Z"
}