$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://domain.com/api/v1/settings/sysadmin/domain-settings/'.$oneDomain); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $headers = array( "Accept: application/json", "Authorization:Bearer ".$SM_accessToken, ); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $payload = json_encode(array('domainSettings' => array('outgoingIP' => $newIP))); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,$payload); $response = curl_exec($ch); curl_close($ch); echo $response;
$payload='{"domainSettings":{"outgoingIP":"10.1.10.207"}}';
curl 'http://sup-ascholz.st.local/api/v1/settings/sysadmin/domain-settings/ascholz.local/'; \ -H 'Accept: application/json, text/plain, */*' \ -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsIQZ......mSAAEN-0d2JPr20bRvSbKMMzQEYlDgSA' \ -H 'Content-Type: application/json;charset=UTF-8' \ -H 'Accept-Language: en-US,en;q=0.9' \ --data-raw '{"domainSettings":{"outgoingIP":"10.1.10.207"}}'
$headers = array( "Accept: application/json, text/plain, */*", "Authorization:Bearer ".$SM_accessToken, "Content-type: application/json;charset=UTF-8", "Accept-Language: en-US,en;q=0.9", );
'Content-Type: application/json',
Trouble logging in? Simply enter your email address OR username in order to reset your password.
For faster and more reliable delivery, add noreply@smartertools.com to your trusted senders list in your email software.