fix: endpoint name

This commit is contained in:
loks0n
2024-11-01 12:53:54 +00:00
parent c9b2d6eb90
commit f5e2f4acfa
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -649,7 +649,7 @@ App::patch('/v1/projects/:projectId/auth/session-alerts')
$response->dynamic($project, Response::MODEL_PROJECT);
});
App::patch('/v1/projects/:projectId/auth/session-alerts')
App::patch('/v1/projects/:projectId/auth/teams-hide-sensitive-fields')
->desc('Update project team hide sensitive fields')
->groups(['api', 'projects'])
->label('scope', 'projects.write')
+2 -2
View File
@@ -134,7 +134,7 @@ trait TeamsBaseClient
* Update project settings to hide sensitive fields
*/
$projectId = $this->getProject()['$id'];
$response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $projectId . '/auth/session-alerts', array_merge([
$response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $projectId . '/auth/teams-hide-sensitive-fields', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => 'console',
'x-appwrite-key' => $this->getRoot()['secret'],
@@ -164,7 +164,7 @@ trait TeamsBaseClient
/**
* Update project settings to show sensitive fields
*/
$response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $projectId . '/auth/session-alerts', array_merge([
$response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $projectId . '/auth/teams-hide-sensitive-fields', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => 'console',
'x-appwrite-key' => $this->getRoot()['secret'],