Create Member API not giving response.

Rakesh Admin 1 Reputation point
2022-09-22T15:06:17.663+00:00

Hi,
I am using below API for assign member to Team. When I trying this API in postman its working fine but when I am integrating using javascript I am getting below error. Please call me as soon as possible.

API : https://graph.microsoft.com/v1.0/teams/{TeamId}/members

Error:

"A supported MIME type could not be found that matches the acceptable MIME types for the request. The supported type(s)
'application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false,
application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=true,
application/json;odata.metadata=minimal;odata.streaming=true,
application/json;odata.metadata=minimal;odata.streaming=false;IEEE754Compatible=false,
application/json;odata.metadata=minimal;odata.streaming=false;IEEE754Compatible=true,
application/json;odata.metadata=minimal;odata.streaming=false,
application/json;odata.metadata=minimal;IEEE754Compatible=false,
application/json;odata.metadata=minimal;IEEE754Compatible=true,
application/json;odata.metadata=minimal,
application/json;odata.metadata=full;odata.streaming=true;IEEE754Compatible=false,
application/json;odata.metadata=full;odata.streaming=true;IEEE754Compatible=true,
application/json;odata.metadata=full;odata.streaming=true,
application/json;odata.metadata=full;odata.streaming=false;IEEE754Compatible=false,
application/json;odata.metadata=full;odata.streaming=false;IEEE754Compatib...' do not match any of the acceptable MIME types 'text/*'."

Thanks,
Naga

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,674 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,811 Reputation points
    2022-10-07T00:43:42.04+00:00

    Hi @Rakesh Admin

    Hope you're doing good.

    Since the endpoint is working fine in Postman and you are facing issue with JavaScript Integration, I would advise you to please raise a case with GitHub Team & GitHub Team will address this issue.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment

    0 comments No comments