/** * Currently the only field that can be modified for a * workspace is its name (as Asana API says). * * This method returns the complete updated workspace record. * * @param array $data * * @return string|null */ public function updateWorkspace($workspaceId = null, $data = ["name" => ""]) { $workspaceId = $workspaceId ?: $this->defaultWorkspaceId; return $this->curl->put("workspaces/{$workspaceId}", ['data' => $data]); }
/** * Currently the only field that can be modified for a workspace is its name (as Asana API says). * This method returns the complete updated workspace record. * * @param array $data * @return string JSON or null */ public function updateWorkspace($workspaceId = null, $data = array("name" => "")) { $workspaceId = $workspaceId ?: $this->defaultWorkspaceId; return $this->curl->put("workspaces/{$workspaceId}", array('data' => $data)); }