Forum Discussion

aniciu's avatar
aniciu
Adept
7 years ago

Can I post a new message with a V1 API with a past message.post_time?

We are in the process of transferring our proprietary implementation of a community to Lithium and in the process, we need to copy/transfer some of the existing knowledge base articles. Is there a wa...
  • VikasB's avatar
    7 years ago

    aniciu It's not documented but yes you can post the message with original date.

    <#assign subject = "Test Article" />
    <#assign body = "Here is test article" />
    <#assign post_time = "Feb 06, 2017 06:30:40 PM" />
    <#assign post_time = post_time?datetime />
    
    <#-- Add Blog -->
    
    	<#assign addBlog = restadmin("blogs/id/reads_and_resources/messages/post?message.body=${body?url}&message.subject=${subject?url}&message.author=/users/login/John&message.post_date=${post_time?iso('UTC')}") />