Reputation: 119
I am attempting to make the Azure Graph API call getMemberGroups, however I am getting a "400 Bad Request" error in response.
According to the documentation [https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/functions-and-actions#getMemberGroups], the following request should be :
I am using POSTMAN to make the request however I keep getting a "Request_BadRequest" error code.
My POST request is:
Where the red bar is the tenant ID and the blue bar is the object ID of the user.
My headers are:
My body is:
I keep getting the error message:
{
"odata.error": {
"code": "Request_BadRequest",
"message": {
"lang": "en",
"value": "Invalid JSON. The value '------' is not a valid number."
}
}
}
I am not too sure why that is happening, does anyone have any clues?
Upvotes: 2
Views: 988
Reputation: 14649
Since we are posting the json
data, you shouldn't use the form-data. For the application/json
type data, we should use the raw option to send the data.
Upvotes: 4