Whitelisting redirected URLs
{
"appIcon": "Icon url",
"appName": "The Name of your App or [yourdomain]",
"redirectUrls": [
"https://[yourdomain]/*"
}Example
curl -X PATCH "https://sec-id-api.securitize.io/v1/{domainID}" -H "accept: application/json" -H "Authorization: {secret}" -H "Content-Type: application/json" -d "{body}"{
"appIcon": "Icon url",
"appName": "The Name of your App or [yourdomain]",
"redirectUrls": [
"https://[yourdomain]/*"
}serviceUrl = 'https://sec-id-api.sandbox.securitize.io/v1/'
ClientID ="STRING"
Secret ="STRING"
body = {'appIcon':'TheIcon',
'appName':'TheAppName',
'redirectUrls':['yourdomain']}
response = requests.patch(
serviceUrl + ClientID ,
headers={'Authorization': Secret},
data= body
)
print(response.headers)
if (response.status_code == 200):
print("Correctly updated")
else:
print('Error: ', response.content)Last updated