Skip to content

Commit 807c01c

Browse files
fix: Correct tenant update API to use PATCH method and resource_name field.
1 parent fd9baff commit 807c01c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function getTenant(string $tenant): ?Tenant
142142
*/
143143
public function updateTenant(string $tenant, UpdateTenantRequest $request): void
144144
{
145-
$this->sendRequest('PUT', "/api/v2/tenants/$tenant", [
145+
$this->sendRequest('PATCH', "/api/v2/tenants/$tenant", [
146146
'json' => $request->toArray(),
147147
]);
148148
}

src/Requests/UpdateTenantRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function fromArray(array $data): self
2121
public function toArray(): array
2222
{
2323
return [
24-
'name' => $this->name,
24+
'resource_name' => $this->name,
2525
];
2626
}
2727
}

0 commit comments

Comments
 (0)