What serial data should I put during zone insert for remote api?

Discussion in 'Developers' Forum' started by laptop_user, Jul 30, 2013.

  1. laptop_user

    laptop_user Member

    Hi,

    Excuse my ignorance but what data should I input in serial field for remote API?

    Code:
    	//* Set the function parameters.
    	$client_id = 1;
    	$params = array(
    			'server_id' => 1,
    			'zone' => 1,
    			'name' => strval($NAME),
    			'type' => 'cname',
    			'data' => strval($DATA),
    			'aux' => '0',
    			'ttl' => intval($TTL),
    			'active' => strval($ACTIVE),
    			'stamp' => date('Y-m-d H:i:s'),
    			'serial' => '1',
    			);
    Thanks in advance
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    serial is a interger number which has to be increased with every update. So starting with 1 for a newly inserted record is fine.
     
    laptop_user likes this.

Share This Page