The POST /notification_preferences call allows your platform to create a new notification preference. Notification preferences allow your platform to subscribe to notifications based on an event topic.
id required | string | ||||||
resource required | string Helps organize information by identifying the resource type of the object data.
| ||||||
path required | string | ||||||
create_time required | integer <int64> >= 0 | ||||||
topic required | string | ||||||
callback_uri required | string | ||||||
status required | string Status of the notification preference. Possible values are:
| ||||||
api_version | string | ||||||
object This owner resource and owner path of the object. |
INVALID_PARAMS
NOT_AUTHORIZED
UNEXPECTED_ERROR
{- "topic": "payments.completed"
}
{- "create_time": 1509407823974,
- "id": "fee568cd-8ac6-40f3-9623-91aba2c5d11a",
- "owner": {
- "id": "74582",
- "path": null,
- "resource": "applications"
}, - "path": "/notification_preferences/fee568cd-8ac6-40f3-9623-91aba2c5d11a",
- "resource": "notification_preferences",
- "status": "active",
- "topic": "payments.completed",
- "api_version": "3.0"
}