How can have form-data option in request body in Azure Portal, Azure API management test

Bui Tuan Anh 0 Reputation points
2023-03-24T01:42:38.81+00:00

I want to send my file in my request, I already choose the multipart/formdata in the header but can't see option form-data in the request body. Did I make a mistake at any step?

Screenshot 2023-03-24 at 08.35.38

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,784 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MuthuKumaranMurugaachari-MSFT 22,156 Reputation points
    2023-03-24T14:40:53.71+00:00

    Bui Tuan Anh Thank you for posting your question in Microsoft Q&A. In Azure portal test blade, multipart/formdata is not supported yet and you can only upload binary data. Here are the other options to test the API in API Management.

    Note: Make sure that you define API with OpenAPI specification and add endpoint with request body "content-type = multipart/form-data" as shown in the screenshot.

    If you have any feedback on this feature or any other ideas, feel free to submit directly to our product team via https://aka.ms/apimwish. I hope this helps with your question and let me know if you have any other questions.


    If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.

    0 comments No comments