I don’t get this to work…
POST https://XXX/notifications
Api-Key:XXX
Api-Username:system
Content-Type:application/json
Accept:application/json
{
"notification_type":9,
"user_id": 123,
"post_number": 1,
"topic_id": 956,
"data": {
"topic_title": "Test",
"original_post_id": 2222,
"original_post_type": 1,
"original_username": "User.Name",
"revision_number": 1,
"display_username": "Text"
}
}
I get as response:
{
"errors": [
"Data can't be blank"
],
"error_type": "record_invalid"
}
Formatting error, misunderstanding? Or am I missing something in data?
I can’t really reverse engineer this from the web - Or is this API called somewhere?