canvas_python_sdk icon indicating copy to clipboard operation
canvas_python_sdk copied to clipboard

Attachment IDs in create conversations

Open joshdeutsch opened this issue 8 years ago • 1 comments

In conversations.py create_conversation(), you get a 500 response when including attachment_ids. After contacting canvas support, it turned out that the issue was that the translation to the http request required '[]' after attachment_ids. Please see this thread. At the moment the work around is to add the attachment_ids with [] using kwargs. This seems to me to be a bug on the canvas side but to make this function usable, it'd be good to modify create_conversation() to follow this [] requirement.

joshdeutsch avatar Dec 18 '17 02:12 joshdeutsch

I realize this is an old issue, but for others like me ending up here after Googleing: it appears (fixed. Make sure you are actually sending a list of attachment IDs: attachment_ids=(123,) This will make sure the [] is added, and you don't get a 500 error.

jullrich avatar May 04 '21 23:05 jullrich