Push subuser creation service
This commit is contained in:
parent
2a5570877c
commit
74ea1aa0aa
23 changed files with 1077 additions and 229 deletions
|
@ -84,6 +84,20 @@ class ServerRepository extends BaseRepository implements ServerRepositoryInterfa
|
|||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function setSubuserKey($key, array $permissions)
|
||||
{
|
||||
return $this->getHttpClient()->request('PATCH', '/server', [
|
||||
'json' => [
|
||||
'keys' => [
|
||||
$key => $permissions,
|
||||
],
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue