REST API - Posting a comment as a specific user

Developer Space

Developer Space
Want to extend the Telligent Evolution platform? Collaborate with other developers and product experts here.

REST API - Posting a comment as a specific user

This question has suggested answer(s)

Hi,

I want to post a reply on a thread via the REST API, end point api.ashx/v2/forums/{forumid}/threads/{threadid}/replies.xml. However the API always posts as the authenticating user e.g. Admin. How can I post as a specific user? I appreciate the API call does not have a username parameter, can someone advise how I can achieve this?

Thanks in advance

All Replies
  • To post content as another user via REST, you'll need to use an account with Impersonation rights, and then use the Rest-Impersonate-User header to impersonat ehte user you want to create content as - see telligent.com/.../36672.rest-api.aspx for more details.