Jason Chang
Jason Chang

Reputation: 21

The Microsoft Graph API: List post attachments API doesn't work

I followed this document and wrote the code as below, but it response 405(method not allowed), error message is "The OData request is not supported.".

function getAttachment(groupId, threadId, postId) {
    HttpClient.get({
        url: "https://graph.microsoft.com/v1.0/groups/" + groupId + "/threads/" + threadId + "/posts/" + postId + "/attachments"
    }).then(function (resp) {

    });
};

Is there something wrong in the code?

Upvotes: 0

Views: 232

Answers (1)

Marek Rycharski
Marek Rycharski

Reputation: 1694

Your code is correct, it's a bug in the Graph API. A fix for it is being rolled out and should be widely available in about a month.

Upvotes: 1

Related Questions