Update dedicated IP

Put /settings/ips/{id}

URL parameters:

Name Description Type Mandatory
id IP id String Yes

Parameters:

Name Description Type Mandatory
type Type of sent that IP is for
0: transactional ; 1: bulk
Int Yes

Response:

Name Description Type
status success / failure String
Programming language:

Request exemple:

							{
								"type": 0
							}
							

Response exemple:

							{
								"status": "success"
							}
							

Code example:

								curl -X PUT -d '{"type":"0"}' -H "Content-Type: application/json" -H "X-Tipimail-ApiUser:YOUR_SMTP_USERNAME" -H "X-Tipimail-ApiKey:YOUR_SMTP_KEY" https://api.tipimail.com/v1/settings/ips/558a732d576736081fc23f6f
							
require 'vendor/autoload.php';

$tipimail = new Tipimail\Tipimail('YOUR_SMTP_USERNAME', 'YOUR_API_KEY');

try {
	
	$result = $tipimail->getSettingsService()->getDedicatedIpsService()->updateToBulk('646r54g6r4gr6g46g46546d4');
	var_dump($result);
	
	$result = $tipimail->getSettingsService()->getDedicatedIpsService()->updateToTransactional('646r54g6r4gr6g46g46546d4');
	var_dump($result);
		
}
catch(Tipimail\Exceptions\TipimailException $e) {
	echo 'Exception received :', $e->getMessage(), "\n";
	
}