Public/Set-GCCoachingAppointment.ps1
|
<# .SYNOPSIS Updates an existing coaching appointment. .DESCRIPTION Partially updates the specified coaching appointment in Genesys Cloud. Uses the PATCH /api/v2/coaching/appointments/{appointmentId} endpoint. .PARAMETER AppointmentId The unique identifier of the coaching appointment to update. .PARAMETER Body The updated coaching appointment properties. .EXAMPLE $apptBody = @{ status = 'Completed' } Set-GCCoachingAppointment -AppointmentId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' -Body $apptBody .NOTES Genesys Cloud API: PATCH /api/v2/coaching/appointments/{appointmentId} #> function Set-GCCoachingAppointment { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$AppointmentId, [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "coaching/appointments/$AppointmentId" return Invoke-GCApiRequest -Endpoint $endpoint -Method PATCH -Body $Body } |