Forum Discussion
SuzieH
Khoros Alumni (Retired)
HI patils27
I'm trying to track down an example for you. As a workaround, could you use the v1 methods described in the post by DougS?
patils27
5 years agoGuide
Thank You for response .
I can successfully able to upload image ( to user account ) with REST API V1 and refer link back to message
https://xxxxxxxx/restapi/vc/users/id/xxx/media/albums/default/public/images/upload
Here I'm looking for REST API V2 to post images as part of messages
Thanks & Regards
Sachin Patil
- SuzieH5 years agoKhoros Alumni (Retired)
HI patils27
Could you please try a request body that looks like this where the image ID is the value of li-image id.{ "data": { "type": "message", "subject": "Awesome Shirt", "body": "This is a message about a t-shirt. <li-image id=\"336i254DB23392D370B6\"/> This is a great shirt.", "board": { "id": "shirts" } } }
Related Content
- 10 years ago
- 4 years ago