OneSpan Introduces DigipassONE, Bringing a Unified Platform Approach to Authentication Modernization
A new authentication platform helps financial institutions support diverse customer authentication preferences while modernizing at their own pace Learn More

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"