microsoft-graph-devx-api icon indicating copy to clipboard operation
microsoft-graph-devx-api copied to clipboard

[API Doctor] Unable to handle the multipart form data when one of the parts is Json

Open millicentachieng opened this issue 1 year ago • 0 comments

Unable to handle the multipart form data when one of the parts is Json

Example

POST https://graph.microsoft.com/beta/sites/{id}/pages
Content-type: multipart/form-data; boundary=MyPartBoundary198374
 
Content-Disposition: form-data; name="request"
Content-Type: application/json
 
{
  "@odata.type": "#microsoft.graph.newsLinkPage",
  "title": "Microsoft Build brings AI tools to the forefront for developers",
  "newsWebUrl": "https://blogs.microsoft.com/blog/2023/05/23/microsoft-build-brings-ai-tools-to-the-forefront-for-developers",
  "description": "You only need two simple letters to accurately convey the major shift in the technology space this year: A and I. Beyond those letters, however, is a complex, evolving and exciting way in which we work, communicate and collaborate.",
  "@microsoft.graph.bannerImageWebUrlContent" : "name:content"
}
 
Content-Disposition: form-data; name="content"; filename="b3.jpg"
Content-Type: image/jpeg
 
... binary image data ...
 

millicentachieng avatar Aug 07 '24 16:08 millicentachieng