src/Portfolio/Card.php
public function insert(array $data)
    {
        $columnId = empty($data['columnId']) ? 0 : (int) $data['columnId'];
        if ($columnId <= 0) {
            throw new Exception('Required field columnId');
        }
        unset($data['columnId']);

        if (empty($data['projectId'])) {
            throw new Exception('Required field projectId');
        }

        return $this->rest->post("portfolio/columns/$columnId/cards", $data);
    }
public function insert(array $data)
    {
        $columnId = empty($data['columnId']) ? 0 : (int) $data['columnId'];
        if ($columnId <= 0) {
            throw new Exception('Required field columnId');
        }
        unset($data['columnId']);

        if (empty($data['projectId'])) {
            throw new Exception('Required field projectId');
        }

        return $this->rest->post("portfolio/columns/$columnId/cards", $data);
    }
public function insert ( array $ data ) { $ columnId = empty ( $ data [ 'columnId' ] ) ? 0 : ( int ) $ data [ 'columnId' ] ; if ( $ columnId <= 0 ) { throw new Exception ( 'Required field columnId' ) ; } unset ( $ data [ 'columnId' ] ) ; if ( empty ( $ data [ 'projectId' ] ) ) { throw new Exception ( 'Required field projectId' ) ; } return $ this -> rest -> post ( "portfolio/columns/$columnId/cards" , $ data ) ; }
Adds a project to the given board

@param array $data

@return int
Adds a project to the given board