Method:
mm.files.add
Upload a file that can be later used as an attachment, image or theme background
Authentication
Requires signing: | Yes |
Requires authentication: | Yes |
Requires access: | write |
Parameters
-
file
(required) Binary file -
file_type
(required) One of 'idea_image', 'attachment_file', 'theme_background' -
map_id
(required)
Sample Response
{"file":{"id":55,"filename":"test.mm","size":1453,"url":"/generic_files/get_file/55?filetype=attachment_file","owner":18,"createdAt":"2013-09-02T15:10:31Z","contentType":"text/xml"}}
Error Codes
-
20
Object not found - Object not found
-
96
Invalid signature - The passed signature was invalid.
-
97
Missing signature - The call required signing but no signature was sent.
-
98
Login failed - The login details or auth token passed were invalid.
-
100
Invalid API Key - The API key passed was not valid or has expired.
-
112
Method not found - The requested method was not found.
Test Method
No API key found.
If you already have an API key you might just have to Sign In.