Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.

API: Is there a post request type that uploads data that is not of the add_attachment variety?

I’m writing some unit tests and looking to cover a case where you can upload data without using an add_attachment variant. I was thinking that AddResult should be able to upload an image with it but I’m not seeing anything in the documentation that would suggest it can although I’m still new to the API so I might have missed it.

Hi Alex,

Thanks for the post! API methods which are not ‘add_attachment’ methods would not support file uploads at this time. The current method for adding attachments to test results through the API would be using the ‘add_attachment’ methods.

That said, there is not a current API endpoint for adding attachments to test cases themselves, as this option is only available for results at this time.

Hope this helps clarify,