You are here

public function MoxtraService::updateWorkspace in Opigno Moxtra 8

Same name and namespace in other branches
  1. 3.x src/MoxtraService.php \Drupal\opigno_moxtra\MoxtraService::updateWorkspace()

Updates workspace (Moxtra binder).

Parameters

int $owner_id: User ID.

string $binder_id: Binder ID.

string $name: New workspace name.

Return value

array Response data.

Overrides MoxtraServiceInterface::updateWorkspace

File

src/MoxtraService.php, line 393

Class

MoxtraService
Implements Moxtra REST API.

Namespace

Drupal\opigno_moxtra

Code

public function updateWorkspace($owner_id, $binder_id, $name) {
  $data = [
    'name' => $name,
  ];
  $url = $this
    ->getUpdateBinderUrl($owner_id, $binder_id);
  return $this->moxtraConnector
    ->request($url, $data);
}