In Microsoft Graph Api message Id has changed without any reason - microsoft-graph-api

Time to time we get error response for following request to Microsoft Graph Api:
GET /users/{userPrincipalName}/messages/{id}
"Code: ErrorItemNotFound
Message: The specified object was not found in the store., The process failed to get the correct properties.
..."
After investigation we found that Ids of messages were changed.
My question is, why and when Id of message could be changed? Is it bug or normal behavior?

I think Immutable Id might help you. They also explain the reason of changing Item ID in that article.

Related

making a project with JIRA rest API. getting an Error as a response. But don't know the solution

I am running Jira on docker. And making a simple rest API call to make a new project.
But I am getting an error "You must specify a valid project lead".
I AM indeed specifying a valid user called "userOne" that I have made on my server.
Can someone help me out what the problem is?
I have attached a picture of the POST request that I am making
and the response that I am getting.
Additionally: the user that I am trying to make as a the lead is an ACTIVE user,
The screeenshot for that is attached below too.[in case that is something that can cause problems]
userOne is the full name of your user. The endpoint is expecting the username (which is unique across the whole instance), try changing it to user1.

MS Graph beta API onlineMeetings attendanceReports not working

I'm trying to get the recent changes to the MS Graph beta API to return a collection of meetingAttendanceReports using /attendanceReports (see https://learn.microsoft.com/en-us/graph/api/meetingattendancereport-list?view=graph-rest-beta). I have tried this in Graph Explorer and also in a C# console app in VS, but cannot get it working.
The (Graph Explorer) request is as follows:
https://graph.microsoft.com/beta/users/8b16954b-5dcb-4395-89bb-be879c0f8f77/onlineMeetings/MSo4YjE2OTU0Yi01ZGJiLTQzOTUtODliYi1iZTg3OWMwZjhmNzcqMCoqMTe6bWVldGluZ19Zek0yTnpVNU5ERXRNRFUwT1MwME5UZzRMVGszTXpZdE16QmxNV1JqTmpCak5tRXhAdGhyZWFkLnYy/attendanceReports
The response I am getting is "BadRequest" : "Value cannot be null.Parameter name: String".
The online (Teams) meeting is successfully returned if I remove /attendanceReports resulting in the following request:
https://graph.microsoft.com/beta/users/8b16954b-5dcb-4395-89bb-be879c0f8f77/onlineMeetings/MSo4YjE2OTU0Yi01ZGJiLTQzOTUtODliYi1iZTg3OWMwZjhmNzcqMCoqMTe6bWVldGluZ19Zek0yTnpVNU5ERXRNRFUwT1MwME5UZzRMVGszTXpZdE16QmxNV1JqTmpCak5tRXhAdGhyZWFkLnYy
I have spent days trying to get this working. Although similar error responses can be found by searching online, none of them seem to relate to this particular situation. Any help would be gratefully appreciated.
Created an onlineMeeting using Graph API and got the meeting ID from the response
Then by following this doc tried to get attendanceReports and got proper response.

Add reaction to existing posts or comments

How can we "like" or add other reactions to someone else's channel message or comment via the Graph API?
I've not done this myself, but it certainly looks possible. You need to reply to the message, as per https://learn.microsoft.com/en-us/graph/api/channel-post-messagereply?view=graph-rest-1.0&tabs=http and notice that it has a "reactions" collection. That would be populated with a chatMessageReaction type, as per https://learn.microsoft.com/en-us/graph/api/resources/chatmessagereaction?view=graph-rest-beta
Note of warning: chatMessageReaction is a beta type though, so just be aware you need to call the beta endpoint, and it has a risk to use in production code as things might change.
Update: We reached out to MS Support and received the following info: "The API to reply to a message using a POST /replies request is solemnly for issuing a reply to a message, and not to edit the status of the parent message itself. Moreover, the "update chatMessage" API which is a PATCH /messages and which is the only API to edit a parent message only supports updating the policyViolation property of a chatMessage. Essentially, there is currently no documented API / already-present API examples on how to add a reaction, making this purely unsupported."

Microsoft Graph API for Education: error listing user schools

I'm trying to retrieve the educationShool list of an educationUser from Microsoft Graph per the API reference:
I am getting this error:
Error message: The request URI is not valid. Since the segment
'memberOf' refers to a collection, this must be the last segment in
the request URI or it must be followed by an function or action that
can be bound to it otherwise all intermediate segments must refer to a
single resource.
I have reproduced this issue in the Graph Explorer, if I try to send this request, I get the same error:
https://graph.microsoft.com/v1.0/education/me/schools
If I try to list the Classes (I think it should be a very similar scenario), it works ok:
https://graph.microsoft.com/v1.0/education/me/classes
Am I doing something wrong, or is this a bug in the API?
I was able to reproduce this and it looks like there may be a bug here. While that gets investigated, I can confirm that it works properly in the /beta release:
https://graph.microsoft.com/v1.0/education/me/schools
I'd suggest using /beta for this particular call if possible.
Update: This issue has been resolved and education/{users}/schools should now be working in both v1.0 and Beta versions.

Is List Joined Teams API Working

Working with Teams preview API and attempting to get all of the Teams of which the current person is a member. I don't get any authorization errors, but instead get a 400 - Bad Request as a response. Bad Request is a REALLY strange error for a GET request with no parameters, i.e. we're just asking for https://graph.microsoft.com/beta/me/joinedTeams using the access token we just got from Azure AD.
Is this just not working right now? Or is there something maybe missing from the documentation? Or something else?
Update 2/27/18: this has been fixed.
It's an active bug we are tracking.

Resources