Trying unsuccessfully to upload a file to an existing column following the API docs, but I receive a Bad Request error without too much information regarding what is bad.
I’m working with Python, first I generate a request data:
I am sending it as a POST to the /v2/file API, I can add items and do other manipulations, it’s just that this query keep failing with Bad Request.
I tried omitting the $ in $file, tried escaping it, nothing worked.
Right now you wouldn’t be able to upload the file this way - it would need to be sent over as a multipart file. We’re working on having more documentation on this, but in the meanwhile I would recommend following this guide from our community.
Interesting, I will check this out. I tried using moncli a couple months ago but had an issue with a complexity error when querying groups. I’ll let you know if I have any issues.
Hey @Knowa - at this time the multipart upload I listed above would still be the main way to upload files to the API (you can use something like Postman for this).
I haven’t personally tried the new release of moncli above, but I’d be curious to hear your results
When using what you posted, when I use board.get_items(), I get a TypeError for an unexpected keyword argument ‘ids’. This is also true for other variations of ‘ids’.
client = MondayClient(user_name='EMAIL', api_key_v1='', api_key_v2='APIV2KEY')
board = client.get_board(id='123456789')
item = board.get_items(ids=[790942328])
File "c:\Python38\Scripts\Projects\mondayTest.py", line 10, in <module>
item = board.get_items(ids=[790942328])
TypeError: get_items() got an unexpected keyword argument 'ids'
I must apologize. The current release does not support keyword arguments for get_items() . You can work around this with list comprehension.
item = [item for item in board.get_items() if item.id == '790942328'][0]
I have been side-tracked by other work-related projects and am actually looking into the complexity issue that you submitted earlier. I will add the keyword argument support for this in the meantime.
I know that our current dev codebase (for the official release) does support keyword arguments for these types of query methods. I will be working on getting this released within the next week or two.
Thank you for your patience, and please let me know if this works out for you!