public function create($name, $parentId, $order = null, $partyId = null)
    {
        $params = [
            'name'     => $name,
            'parentid' => $parentId,
            'order'    => $order,
            'id'       => $partyId,
        ];

        return $this->parseJSON('json', [self::API_CREATE, $params]);
    }
public function create($name, $parentId, $order = null, $partyId = null)
    {
        $params = [
            'name'     => $name,
            'parentid' => $parentId,
            'order'    => $order,
            'id'       => $partyId,
        ];

        return $this->parseJSON('json', [self::API_CREATE, $params]);
    }
public function create ( $ name , $ parentId , $ order = null , $ partyId = null ) { $ params = [ 'name' => $ name , 'parentid' => $ parentId , 'order' => $ order , 'id' => $ partyId , ] ; return $ this -> parseJSON ( 'json' , [ self :: API_CREATE , $ params ] ) ; }
Create Department.

@param string   $name
@param int      $parentId
@param int|null $order
@param int|null $partyId

@return int
Create Department .