PSMSGraphBatchRequest
This Module assists the creation of Batch Requests for Microsoft Graph by converting PSObjects to JSON with proper schema validation
Install / Use
/learn @HCRitter/PSMSGraphBatchRequestREADME
PSMSGraphBatchRequest
The <b>MSGraphBatchRequest</b> PowerShell module provides a convenient way to transform data into Microsoft Graph Batch Requests by converting PowerShell objects to JSON with proper schema validation.
Features
- Batch Request Schema: Enforces adherence to a specified JSON schema for Microsoft Graph Batch Requests.
- Batch Size Control: Allows batching of requests based on a specified batch size.
- Schema Validation: Validates the transformed JSON against the predefined schema.
Usage
$Calls = @(
[PSCustomObject]@{
id = '1'
method = "GET"
url = '/users/me'
},
[PSCustomObject]@{
id = '2'
method = "GET"
url = '/devices'
}
)
ConvertTo-MSGraphBatchRequest -Requests $Calls
returns:
{
"requests": [
{
"id": "1",
"method": "GET",
"url": "/users/me"
},
{
"id": "2",
"method": "GET",
"url": "/devices"
}
]
}
Related Skills
node-connect
353.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
