diff --git a/src/CloudCommunications/v1.0/examples/Invoke-MgInviteCommunicationCallParticipant.md b/src/CloudCommunications/v1.0/examples/Invoke-MgInviteCommunicationCallParticipant.md index e2dcdab818b..fc192adcebf 100644 --- a/src/CloudCommunications/v1.0/examples/Invoke-MgInviteCommunicationCallParticipant.md +++ b/src/CloudCommunications/v1.0/examples/Invoke-MgInviteCommunicationCallParticipant.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Invite one participant to an existing call ```powershell @@ -14,6 +14,133 @@ $params = @{ user = @{ "@odata.type" = "#microsoft.graph.identity" id = "278405a3-f568-4b3e-b684-009193463064" + displayName = "string" + } + } + } + ) + clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} + +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params + +``` +This example will invite one participant to an existing call + +### Example 2: Invite multiple participants to an existing group call + +```powershell + +Import-Module Microsoft.Graph.CloudCommunications + +$params = @{ + participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + user = @{ + "@odata.type" = "#microsoft.graph.identity" + id = "7e1b4346-85a6-4bdd-abe3-d11c5d420efe" + displayName = "string" + } + } + } + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + user = @{ + "@odata.type" = "#microsoft.graph.identity" + id = "1e126418-44a0-4a94-a6f8-0efe1ad71acb" + displayName = "string" + } + } + } + ) + clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} + +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params + +``` +This example will invite multiple participants to an existing group call + +### Example 3: Invite participants to an existing group call, replacing an existing Peer-to-Peer call + +```powershell + +Import-Module Microsoft.Graph.CloudCommunications + +$params = @{ + participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + user = @{ + "@odata.type" = "#microsoft.graph.identity" + id = "7e1b4346-85a6-4bdd-abe3-d11c5d420efe" + displayName = "string" + } + } + } + ) + clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} + +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params + +``` +This example will invite participants to an existing group call, replacing an existing peer-to-peer call + +### Example 4: Invite one PSTN participant to an existing call + +```powershell + +Import-Module Microsoft.Graph.CloudCommunications + +$params = @{ + participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + phone = @{ + "@odata.type" = "#microsoft.graph.identity" + id = "+12345678901" + } + } + } + ) + clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} + +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params + +``` +This example will invite one pstn participant to an existing call + +### Example 5: Move one participant from one meeting to another + +```powershell + +Import-Module Microsoft.Graph.CloudCommunications + +$params = @{ + participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + participantId = "7d501bf1-5ee4-4605-ba92-0ae4513c611c" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + user = @{ + "@odata.type" = "#microsoft.graph.identity" + id = "682b6c37-0729-4fab-ace6-d730d5d9137e" identityProvider = "AAD" } } @@ -25,5 +152,5 @@ $params = @{ Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params ``` -This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet. +This example will move one participant from one meeting to another