Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
millicentachieng opened this issue Aug 7, 2024 · 0 comments
Assignees
Labels
area: api-doctor For API Doctor tickets

Comments

@millicentachieng
Copy link
Contributor

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 millicentachieng added the area: api-doctor For API Doctor tickets label Aug 7, 2024
@millicentachieng millicentachieng self-assigned this Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: api-doctor For API Doctor tickets
Projects
None yet
Development

No branches or pull requests

1 participant