SkillAgentSearch skills...

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/PSMSGraphBatchRequest
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars11
CategoryDevelopment
Updated2mo ago
Forks1

Languages

PowerShell

Security Score

90/100

Audited on Feb 7, 2026

No findings