SOLVED

Graph API Object Schema

%3CLINGO-SUB%20id%3D%22lingo-sub-2080556%22%20slang%3D%22en-US%22%3EGraph%20API%20Object%20Schema%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2080556%22%20slang%3D%22en-US%22%3E%3CP%3EWe're%20currently%20building%20an%20API%20in%20Mulesoft%20to%20update%20our%20Azure%20AD%20with%20new%20and%20updated%20user%20information%20from%20our%20HR%20system.%20Is%20there%20any%20documentation%20or%20a%20repository%20with%20the%20JSON%20schema%20for%20the%20different%20objects%20that%20the%20Microsoft%20Graph%20API%20works%20with.%20I've%20looked%20on%20the%20internet%20and%20GitHub%2C%20but%20have%20come%20up%20empty%20so%20far.%20We're%20currently%20using%20responses%20from%20the%20graph%20explorer%20to%20infer%20the%20schema%2C%20but%20I'm%20sure%20there%20is%20a%20better%2Fmore%20accurate%20way%20to%20find%20this.%20The%20preference%20would%20be%20to%20find%20the%20object%20schemas%20in%20Swagger%202.0%20or%203.0%20or%20better%20yet%2C%20RAML%2C%20but%20I'll%20take%20what%20I%20can%20get%20at%20this%20point.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2080556%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20Graph%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2081536%22%20slang%3D%22en-US%22%3ERe%3A%20Graph%20API%20Object%20Schema%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2081536%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20fetch%20the%20metadata%20document%20from%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2F%7Bversion%7D%2F%24metadata%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2F%7Bversion%7D%2F%24metadata%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

We're currently building an API in Mulesoft to update our Azure AD with new and updated user information from our HR system. Is there any documentation or a repository with the JSON schema for the different objects that the Microsoft Graph API works with. I've looked on the internet and GitHub, but have come up empty so far. We're currently using responses from the graph explorer to infer the schema, but I'm sure there is a better/more accurate way to find this. The preference would be to find the object schemas in Swagger 2.0 or 3.0 or better yet, RAML, but I'll take what I can get at this point.

1 Reply
best response confirmed by awhatley1836 (Occasional Visitor)
Solution

You can fetch the metadata document from https://graph.microsoft.com/{version}/$metadata