CmdID / PowerShell / Cmdlets / Invoke
Invoke-MgGraphRequest
Invoke-MgGraphRequest issues REST API requests to the Graph API. Microsoft Graph PowerShell reference
From the Microsoft Graph PowerShell reference 18 parameters Its page in the reference
Parameters
Show its 18 parameters
-BodyRequest Body.-BreakWait for .NET debugger to attach-ContentTypeCustom Content Type-GraphRequestSessionCustom Graph Request Session-HeadersOptional Custom Headers-InferOutputFileNameInfer output filename-InputFilePathInput file to send in the request-MethodHTTP Method-OutputFilePathOutput file where the response body will be saved-OutputTypeOutput Type to return to the caller-PassThruIndicates that the cmdlet returns the results, in addition to writing them to a file.-ResponseHeadersVariable, -RHVResponse Headers Variable-SessionVariable, -SVSpecifies a web request session.-SkipHeaderValidationAdd headers to Request Header collection without validation-SkipHttpErrorCheckSkip Checking HTTP Errors-StatusCodeVariableResponse Status Code Variable-UriUri to call can be segments such as /beta/me or fully qualified https://graph.microsoft.com/beta/me-UserAgentCustom User Specified User Agent