Add Support for partial updates more broadly

This commit is contained in:
Christian Bönning 2022-06-02 12:56:07 +02:00
commit 61163df64a
30 changed files with 330 additions and 0 deletions

View file

@ -39,6 +39,17 @@ class TenantGroups extends AbstractApi
return $this->put("/tenancy/tenant-groups/" . $id . "/", $params);
}
/**
* @param int $id
* @param array $params
* @return array
* @throws GuzzleException
*/
public function update(int $id, array $params = []): array
{
return $this->patch("/tenancy/tenant-groups/" . $id . "/", $params);
}
/**
* @param array $params
* @return mixed

View file

@ -39,6 +39,17 @@ class Tenants extends AbstractApi
return $this->put("/tenancy/tenants/" . $id . "/", $params);
}
/**
* @param int $id
* @param array $params
* @return array
* @throws GuzzleException
*/
public function update(int $id, array $params = []): array
{
return $this->patch("/tenancy/tenants/" . $id . "/", $params);
}
/**
* @param array $params
* @return mixed