call_microsoft_api
Execute direct API calls to Microsoft Graph or Azure Resource Management endpoints with full control over HTTP methods, parameters, and response handling.
Instructions
Make direct calls to any Microsoft Graph or Azure Resource Management API endpoint with full control over HTTP methods and parameters.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiType | Yes | API type: Microsoft Graph or Azure Resource Management | |
| path | Yes | API URL path (e.g., '/users') | |
| method | Yes | HTTP method | |
| apiVersion | No | Azure API version (required for Azure APIs) | |
| subscriptionId | No | Azure Subscription ID (for Azure APIs) | |
| queryParams | No | Query parameters | |
| body | No | Request body (for POST, PUT, PATCH) | |
| graphApiVersion | No | Microsoft Graph API version to use (default: v1.0) | v1.0 |
| fetchAll | No | Set to true to automatically fetch all pages for list results (e.g., users, groups). Default is false. | |
| consistencyLevel | No | Graph API ConsistencyLevel header. ADVISED to be set to 'eventual' for Graph GET requests using advanced query parameters ($filter, $count, $search, $orderby). | |
| maxRetries | No | Maximum number of retries for failed requests (0-5, default: 3) | |
| retryDelay | No | Base delay between retries in milliseconds (100-10000, default: 1000) | |
| timeout | No | Request timeout in milliseconds (5000-300000, default: 30000) | |
| customHeaders | No | Additional custom headers to include in the request | |
| responseFormat | No | Response format: 'json' (full response), 'raw' (as received), 'minimal' (values only) | json |
| selectFields | No | Array of specific fields to select (applies $select automatically for Graph API) | |
| expandFields | No | Array of fields to expand (applies $expand automatically for Graph API) | |
| batchSize | No | Batch size for pagination when fetchAll is true (1-1000, default: 100) |