Skip to main content

List of Post Events

EventTriggered WhenNote
post.createda new post is createdThis event is triggered only if post_enabled community option is true
post.updateda post is updatedThis event is triggered only if post_enabled community option is true
post.deleteda post is deletedThis event is triggered only if post_enabled community option is true
post.restoreda post is restored after deletionThis event is triggered only if post_enabled community option is true
post.followa post is followed by the userThis event is triggered only if post_enabled community option is true
post.unfollowa post is unfollowed by the userThis event is triggered only if post_enabled community option is true
post.suspenda post's notifications are suspended by the userThis event is triggered only if post_enabled community option is true
post.unsuspenda post's notifications are unsuspended by the userThis event is triggered only if post_enabled community option is true
  • post.created
  • post.updated
  • post.deleted
  • post.restored
{
"event_id": 0,
"type": "string",
"created": 1625471209.139224,
"data": {
"id": 1,
"categories": [],
"medias": [],
"location": [],
"poll": [],
"last_activity_at": "2021-05-28T11:37:25.178645+02:00",
"last_edited_at": null,
"author": {
"id": 100,
"username": "string",
"real_name": "string",
"date_joined": "2021-05-28T10:33:52.269304+02:00",
"bio": "string",
"location": "string",
"location_lat_lng": "string",
"position_lat_lng": "string",
"date_of_birth": "string",
"description": "string",
"gender": "Male",
"website": "https://example.com",
"avatar": "string",
"cover": "string",
"ext_id": "string",
"tags": [],
"reputation": 111,
"followings_counter": 7,
"followers_counter": 2,
"posts_counter": 4,
"discussions_counter": 3,
"statuses_counter": 0,
"polls_counter": 1
},
"added_at": "2021-05-28T11:37:25.178645+02:00",
"html": "string",
"summary": "string",
"deleted": true,
"collapsed": false,
"comment_count": 0,
"vote_count": 0,
"flag_count": 0,
"share_count": 0,
"addressing": [],
"tags": []
}
}
  • post.follow
  • post.unfollow
  • post.suspend
  • post.unsuspend
{
"event_id": 0,
"type": "string",
"created": 1625471209.139224,
"data": {
"added_at": "2021-06-07T09:46:39.536844+02:00",
"user": {
"id": 1,
"username": "string",
"real_name": "string",
"email": "user@example.com",
"email_isvalid": true,
"date_joined": "2019-08-24T14:15:22Z",
"bio": "string",
"location": "string",
"location_lat_lng": "string",
"position_lat_lng": "string",
"date_of_birth": "2019-09-23",
"description": "string",
"gender": "Male",
"status": "a",
"website": "https://example.com",
"avatar": "string",
"cover": "string",
"ext_id": 3,
"tags": [],
"reputation": 111,
"followings_counter": 7,
"followers_counter": 2,
"posts_counter": 4,
"discussions_counter": 3,
"statuses_counter": 0,
"polls_counter": 1
},
"post": {
"id": 1,
"categories": [],
"medias": [],
"location": [],
"poll": [],
"last_activity_at": "2021-05-28T11:37:25.178645+02:00",
"last_edited_at": null,
"author": {
"id": 100,
"username": "string",
"real_name": "string",
"date_joined": "2021-05-28T10:33:52.269304+02:00",
"bio": "string",
"location": "string",
"location_lat_lng": "string",
"position_lat_lng": "string",
"date_of_birth": "string",
"description": "string",
"gender": "Male",
"website": "https://example.com",
"avatar": "string",
"cover": "string",
"ext_id": "string",
"tags": [],
"reputation": 111,
"followings_counter": 7,
"followers_counter": 2,
"posts_counter": 4,
"discussions_counter": 3,
"statuses_counter": 0,
"polls_counter": 1
},
"added_at": "2021-05-28T11:37:25.178645+02:00",
"html": "string",
"summary": "string",
"deleted": true,
"collapsed": false,
"comment_count": 0,
"vote_count": 0,
"flag_count": 0,
"share_count": 0,
"addressing": [],
"tags": []
}
}
}