Thanks. When using the GUI the upload has different security depending on the context (topic vs private message), so I’d need to mimic the same settings in the upload API call to have the same outcome.
Looking at the API it isn’t clear to me how to achieve this