PersonWantsOrg "Method MakeDecision was not found."

Hello! 

1IM 8.1 

I need approve request over API. 

When I do request 

"https://server/api/entity/PersonWantsOrg/dd74829c-73fa-4d1e-b8ae-059f517c783e/method/MakeDecision" I get error: 

{"responseStatus":{"errorCode":"NotFound","message":"Method MakeDecision was not found.","errors":[]}}

User assigned to Common_StartCustomizerMethods program function.

How I can fix it? 

Parents Reply
  • I changed the $body: 

    $body = @{parameters = @("True", "d6d14a3a-c8fd-46fe-9daf-9a61a8d4180d", "OK") } | ConvertTo-Json
     $body
    {
        "parameters":  [
                           "True",
                           "d6d14a3a-c8fd-46fe-9daf-9a61a8d4180d",
                           "OK"
                       ]
    }
     $newURI = (Invoke-RestMethod -Uri "https://server/AppServer/api/entity/PersonWantsOrg/dd85aaa8-d4cb-4804-bc32-2c45d75cd1e4/method/MakeDecision" -WebSession $wsession -Method Put -Body $body -ContentType "application/json; charset=utf-8").uri
    Invoke-RestMethod : {"responseStatus":{"errorCode":"NotFound","message":"Method MakeDecision was not found.","errors":[]}}
    At line:1 char:12
    + $newURI = (Invoke-RestMethod -Uri "https://server/AppServer ...
    +            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
        + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRe

Children