Asana::updateProject PHP Method

updateProject() public method

This method modifies the fields of a project provided in the request, then returns the full updated record.
public updateProject ( string $projectId, array $data ) : string
$projectId string
$data array An array containing fields to update, see Asana API if needed. Example: array("name" => "Test", "notes" => "It's a test project");
return string JSON or null
    public function updateProject($projectId, $data)
    {
        $data = array('data' => $data);
        $data = json_encode($data);
        return $this->askAsana($this->projectsUrl . '/' . $projectId, $data, ASANA_METHOD_PUT);
    }