Forums

Hi,

We are trying to automate the app shielding process in our CI platform by using the REST API.

The API method https://cp.onespan.com/public_api/v1/rasp/bind_package takes a file as a parameter but on use it returns "(422) Unprocessable Entity."

Below the PowerShell code:

$headers = @{"X-API-KEY" = "$apikey"
    "Content-Type"         = "application/json"
}

$filepath = "app-release.aab"


$uri = "https://cp.onespan.com/public_api/v1/rasp/bind_package?file=app-release.aab"