Header
Body Params
LANGUAGE
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.cripsa.com/v2/api-security/update-resource",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS =>"{
"clientId": "7rvna1j3jlt3k1j9tm4p02g3hd",
"identifier": "https://example.com",
"UserPoolId": "us-east-1_T5yDcV73F",
"domain": "example.com",
"scopes": [
{
"ScopeDescription": "Can Read",
"ScopeName": "api.read"
},
{
"ScopeDescription": "Can Write",
"ScopeName": "api.write"
},
{
"ScopeDescription": "Can ReadWrite",
"ScopeName": "api.readwrite"
},
{
"ScopeDescription": "Can Update",
"ScopeName": "api.update"
}
]
}",
CURLOPT_HTTPHEADER => array(
"x-api-key: xwmFhIpBzP7D6Xd4bsefuI6w26zSciT7bj4fliri',
"Content-Type: text/plain"
),
));