I'm trying to use the post /delegations from this link
https://developer.opentext.com/ce/products/core-fax/apis/core-fax-api#delegation/post_delegations
while using powershell. I get the 599 error
This is my script
invoke-RestMethod -Uri https://faxus1.xmedius.com/faxservice/rest/v1/delegations -Method post -Headers $headers -body $body
variables:
$body
{
"faxBoxId": "123@comphc .org",
"delegateId": "abc@comphc .org",
"options": {
"showOnlyFirstPage": true,
"hasAccessToPermanentDelete": true,
"hasAccessToResubmitTo": true,
"hasAccessToCompose": true,
"hasAccessToForward": true
}
}
$headers = @{'XM-Token-Authorization' = "$token"}
$token has my api key.
name
xm-token-authorization
Thanks for the help!