I am following the below document to update the Microsoft Team's chat message.
https://learn.microsoft.com/en-us/graph/api/chatmessage-update?view=graph-rest-1.0&tabs=http
As per the document, we can Only update the policyViolation property of a chatMessage can be updated.
It doesn't specify whether it is a post or get request.
I tried both via graph explorer.
GET return the message details and post return error "Requested API is not supported. Please check the path."
Does anybody know how to call this API via graph explorer.
According to the documentation it should be PATCH
Related
I am trying to retrive information about mails within a users mailbox.
I am using the following snippet of code:
graphClient.Users[mailbox]
.Messages[messageId]
.Request()
.GetAsync()
.Result;
Which works fine for the most requests.
The messageId is read previously from the graph API.
The app registration has the following permissions.
Found this: using microsoft graph api to read mail behalf of users in the enterprise -> I'm using the application login method.
MessageId's change when an item is moved between folders so it most likely that is the reason your having the problem. To solve it use the immutableid https://learn.microsoft.com/en-us/graph/outlook-immutable-id
I created a meeting via POST /me/onlineMeetings (I still have the response) and now want to access it via
GET /communications/onlineMeetings
But it says i need a VTC conference id which is not present in my response...
Currently the GET onlineMeetings API can only retrieve meetings that have been created using a VTC device.
Please view our documentation for more information.
We have a note -
"Note: The GET method is currently only supported for a VTC conference id. These IDs are generated for Cloud-Video-Interop licensed users and this method is used to get the details to join the meeting."
I am new to Microsoft Graph API, my ultimate goal is to create a Power BI report to show Microsoft Teams call related matrix.
From the documentation i can see the HTTP sample (https://graph.microsoft.com/beta/communications/callRecords/{id}). There are couple of things that are not clear in the documentation.
Where can i get the call id to use in the sample request.
CallRecords.Read.All permission is required to get call data, where do i need to set this permission and what is the process.
I can help with item 2. Your CallRecords.Read.All permission needs to be added for GraphAPI in the API Permissions in AzureAD (https://aad.portal.azure.com/).
But I'm probably trying to do the same as you. And also need to figure out how to get the Call Id.
Laurence
Where can i get the call id to use in the sample request.
You can get the call id from 2 places:
From Office365->Admin->Teams->Search User->Call History->Select a call history
The call id is in your browser address bar, for example https://admin.teams.microsoft.com/users/xxxxxxxx/calls-session/e57d1123-af1c-4d07-8153-c38a1320e3b2
Create a callRecord subscription
O365 sends HTTP POST to your endpoint each time a call is completed. The payload will contain the call id.
I am querying to get a single message from the Microsoft graph API like the following:
https://graph.microsoft.com/v1.0/users/<name>/messages/<id>
However, i am getting a response that is just an empty string. If i make the same request using the beta version of the api like the following:
https://graph.microsoft.com/beta/users/<name>/messages/<id>
The email in question is a calendar share invitation of content-type of "application/ms-tnef" and content-class of "Sharing" in the email headers.
I can't find any documentation indicating this is a known issue in the system. Is there any way to get this to work in the graph API or is the only work-around is to use the beta version instead?
Using Graph Explorer, and recreating your request using their demo accounts returns a result in v1.0. I assumed by name you meant the user's email address and I made the same request using the Guid id of the user.
https://graph.microsoft.com/v1.0/users/MeganB#M365x214355.onmicrosoft.com/messages/AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEMAAAiIsqMbYjsT5e-T7KzowPTAAHi4GJzAAA=
https://graph.microsoft.com/v1.0/users/48d31887-5fad-4d73-a9f5-3c356e68a038/messages/AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEMAAAiIsqMbYjsT5e-T7KzowPTAAIgOnGGAAA=
Have you attempted the same request using graph explorer?
I'm using eventbrite.com, and I'm trying use the rest API to get all the previous events for my user (organizer in eventbrite). I am expecting to get events that have occurred in the past.
I'm using the following url:
https://www.eventbrite.com/xml/event_search?organizer={MyOrganizerName}&app_key={MyAppKey}&date=past
However, I get nothing returned. ever. I am sure that have some events that happened in the past.
I am successfully getting events in the future. so there's nothing wrong with my client\app key\spelling\whatever.
With the newer Eventbrite APIv3 the endpoint changed to /users/me/owned_events The API comes with an API Explorer, which lets you see detailed debugging information for any endpoint just by going to it in a web browser.
Paste this url with your token id into your browser to get all past events:
https://www.eventbriteapi.com/v3/users/me/owned_events/?token=YOURTOKENID
The result is a paginated response of all the events your user account is organizing.
The event_search method is meant to return publicly available information about upcoming events only.
Try user_list_events instead:
https://www.eventbrite.com/xml/user_list_events?app_key={YOUR_APP_KEY}&user_key={YOUR_USER_KEY}&event_statuses=ended
You also have the option of creating an Organizer Profile Page, allowing you to group similar events together. The organizer_list_events API call may be useful for folks who are using that feature.