Anyone tried to alter the announcement author via the discussion topic API?

Community Champion

I copy courses from sandboxes every semester and I use a batch of date-specific announcements every time.   Reminders like:  "Don't forget your papers are due by Friday night" and such.

It really bothers me that all the copied announcements look like I didn't make them because my authorship is stripped when the course is copied.

Since I'm working on this google doc to batch edit the announcement dates (which is pretty much done, BTW), I thought maybe I could update the author on each announcement as well.   I logged the input from an announcement and there is an author object, so I have created the same object going back but it doesn't seem to update.

Has anyone tried this before?  Should I keep trying or is it something that Canvas blocks on the incoming PUT?

The discussion post object as it comes in:

"title":"Test Announcement",
"user_name":"Donald Bryn",
         "display_name":"Donald Bryn",

"message":"\u003cp style=\"font-size: 8pt; margin-top: -3px; margin-bottom: 3px;\"\u003eSession 1\u003c/p\u003e\r\n\u003cp\u003etest\u003c/p\u003e\u003cscript src=\"\"\u003e\u003c/script\u003e",

These are my parameters going out:


         display_name=Donald Bryn

The delayed_post_at, ID, course_id, and type appear to function, but not the author.  It could just be something I'm not getting about formatting the object correctly.   I'm really just a hack at this.   But it looks like the format changes from incoming to outgoing are the same for delayed_post-at and author.

And I did try also sending the user_name, but didn't make a difference.

Users who also had this question