Forum Discussion
Hi AdamN,
view date is no problem. I use the REST API insert record,.
example:
community.domain.com/restapi/vc/boards/id/boardid/messages/post?
message.subject=Title&message.body=Hello Admin&message.post_time=2013-04-20
OR
community.domain.com/restapi/vc/boards/id/boardid/messages/post?
message.subject=Title&message.body=Hello Admin&message.post_time=2013-04-20 05:10
i want to save the date "2013-04-20" or "2013-04-20 05:10", how to do?
I don't think there's a parameter named "message.post_time" for that particular method. There is a "message.post_date" parameter listed in the documentation; however, I believe that particular parameter is reserved for internal Lithium use only. I'm going to follow up on getting the documentation updated to reflect this.
So unfortunately, I don't believe you're going to be able to set a specific time when posting a message. Is there a reason you want to set the time differently than the present time? Perhaps there's some other way to approach what you're trying to accomplish.
- sean12 years agoContributorThanks AdamN
Related Content
- 4 months ago
- 2 years ago
- 5 months ago