File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/Autopilot Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ Function Invoke-AddAPDevice {
3838 }
3939 $body = ConvertTo-Json - Depth 10 - Compress - InputObject @ ($body )
4040 Write-Host $body
41- $GraphRequest = (New-GraphPostRequest - returnHeaders $true - uri " https://api.partnercenter.microsoft.com/v1/$ ( $CurrentStatus .items.deviceslink.uri ) " - body $body - scope ' https://api.partnercenter.microsoft.com/user_impersonation' )
41+ $GraphRequest = (New-GraphPostRequest - returnHeaders $true - uri " https://api.partnercenter.microsoft.com/v1/customers/ $TenantFilter /deviceBatches/ $groupname /devices " - body $body - scope ' https://api.partnercenter.microsoft.com/user_impersonation' )
4242 } else {
4343 $body = ' {"batchId":"' + $ ($GroupName ) + ' ","devices":' + $Devices + ' }'
4444 $GraphRequest = (New-GraphPostRequest - returnHeaders $true - uri " https://api.partnercenter.microsoft.com/v1/customers/$TenantFilter /DeviceBatches" - body $body - scope ' https://api.partnercenter.microsoft.com/user_impersonation' )
You can’t perform that action at this time.
0 commit comments