Public/Set-GCSocialMediaTopic.ps1
|
<# .SYNOPSIS Updates an existing social media topic. .DESCRIPTION Partially updates the specified social media topic in Genesys Cloud. Uses the PATCH /api/v2/socialmedia/topics/{topicId} endpoint. .PARAMETER TopicId The unique identifier of the social media topic to update. .PARAMETER Body The updated social media topic properties. .EXAMPLE $topicBody = @{ name = 'Updated Topic' } Set-GCSocialMediaTopic -TopicId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' -Body $topicBody .NOTES Genesys Cloud API: PATCH /api/v2/socialmedia/topics/{topicId} #> function Set-GCSocialMediaTopic { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$TopicId, [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "socialmedia/topics/$TopicId" return Invoke-GCApiRequest -Endpoint $endpoint -Method PATCH -Body $Body } |