Hi all,
I've had a look through the API documentation, and I can't seem to find any API to get a list of the custom QuickSupport modules I've created. Not a huge issue, as I can assign them to a user and get the QuickSupport ID.
However, when I try to create a new user with that field set, or update that field on a user after creation, I get "internal_error" and error code 3. Can anyone tell me what I'm doing wrong?
$updateBody = @{
"custom_quicksupport_id" = "<myId>"
} | ConvertTo-Json
$updateResponse = Invoke-RestMethod -Method 'PUT' -Headers $postHeader -Uri "$baseUri/api/v1/users/$($response.id)" -Body $updateBody
Invoke-RestMethod : { "error":"internal_error", "error_code":3, "error_signature":"8bEWb8/54de6a10/070318" }
At line:1 char:19
+ .. . eResponse = Invoke-RestMethod -Method 'PUT' -Headers $postHeader -Uri ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException, Microsoft.PowerShell.Commands.InvokeRestMethodCommand