public function MoxtraService::updateWorkspace in Opigno Moxtra 3.x
Same name and namespace in other branches
- 8 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_moxtraCode
public function updateWorkspace($owner_id, $binder_id, $name) {
$data = [
'name' => $name,
];
$url = $this
->getUpdateBinderUrl($owner_id, $binder_id);
return $this->moxtraConnector
->request($url, $data);
}