Forum Discussion

khill's avatar
khill
Mentor
6 years ago

Deleted Field on API V1 or V2?

Hi everyone, Is there a field value I can call via API that indicates if a post is deleted?  I perform a daily pull of our messages API data  and upload into our reporting database (catches posts ba...
  • Parshant's avatar
    6 years ago

    khill

    Unfortunately, there's no such field value API in V1 and V2 to accomplish this when message is delete.

    However, it may be feasible to use Event Subscription REST API and some custom development to achieve this. This application notifies its subscribers so that some action can take place , asynchronously, as a result..

    It support and gives  Events Like: MessageDelete, MessageUpdate etc.

    http://community.mycommunity.com/restapi/vc/events/subscriptions/events/name/MessageDelete/subscribe?event.callback_url=http://watchdog.mycompany.com/indexContent

    You need to run  above subscription API in your community, after that you will receive a notification any time a message has been deleted, across the entire community.

    Subscription to community last until you explicitly unsubscribe.

    You can see more information here in this url.

    https://lithosphere.lithium.com/t5/Developer-Knowledge-Base/Subscribing-to-community-events-using-the-REST-API/ta-p/14785