0

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?

4
  • Could you try the beta api instead of v1.0 ? do you get the same error. Commented Dec 9, 2015 at 20:05
  • Yes I did, but also got the same error message. Commented Dec 10, 2015 at 1:30
  • i know this might sound odd, but since you've got an http 405 response, did you try sending a POST (or PUT, etc.) instead and see what happens? Commented Dec 10, 2015 at 3:34
  • It could be that this endpoint is currently unsupported. Check the following GitHub thread for updates: github.com/OfficeDev/microsoft-graph-docs/issues/… Commented Dec 10, 2015 at 19:40

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.