We are using Microsoft Teams Graph API to publish the app to our catalog
This is how we are using it
const zip = new JSZIP();
zip.file("manifest.json", jsonData);
zip.file("color.png", colorIconRes);
zip.file("outline.png", outlineIconRes);
// Generate the zip
const zipFileContent = await zip.generateAsync({ type: "nodebuffer" });
const response = await graphClient.api('/appCatalogs/teamsApp')
.post(zipFileContent);
But we are getting this error
Unable to read JSON request payload. Please ensure Content-Type header is set and payload is of valid JSON format."