From a0b5f95d5d5d3afc92446a087563a3bab4a95de1 Mon Sep 17 00:00:00 2001 From: Rashi Date: Thu, 19 Mar 2026 12:48:29 +0200 Subject: [PATCH 1/4] add user ststus endpoint --- swagger.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/swagger.yaml b/swagger.yaml index fb7e5c2..33cb584 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -37140,3 +37140,33 @@ components: description: Client_Id header name: Client_Id in: header + /users/{userId}/status: + put: + tags: + - Users + summary: Update user active status + operationId: updateUserStatus + parameters: + - name: userId + in: path + required: true + schema: + type: string + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - isActive + properties: + isActive: + type: boolean + responses: + 200: + description: User status updated + 400: + description: Invalid request + 500: + description: Internal error \ No newline at end of file From 0c27b4581a7c50fd3de8c2d2eaac0c110785048f Mon Sep 17 00:00:00 2001 From: Rashi Date: Thu, 19 Mar 2026 13:12:27 +0200 Subject: [PATCH 2/4] clear --- swagger.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/swagger.yaml b/swagger.yaml index 33cb584..ce82cf0 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -37145,6 +37145,7 @@ components: tags: - Users summary: Update user active status + description: updates a custom "status" attribute for the user in keycloak(eg. active,inactive) operationId: updateUserStatus parameters: - name: userId From 5204810907ea723eb341f89b9745c56c47ad2425 Mon Sep 17 00:00:00 2001 From: Rashi Date: Thu, 19 Mar 2026 14:00:23 +0200 Subject: [PATCH 3/4] clear --- swagger.yaml | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/swagger.yaml b/swagger.yaml index ce82cf0..5ac1e6e 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -37141,19 +37141,20 @@ components: name: Client_Id in: header /users/{userId}/status: - put: - tags: + put: + summary: Update user active status + description: Updates the isActive attribute of a user in Keycloak. This attribute determines whether the user is active in the system. + operationId: updateUserStatus + tags: - Users - summary: Update user active status - description: updates a custom "status" attribute for the user in keycloak(eg. active,inactive) - operationId: updateUserStatus - parameters: + parameters: - name: userId in: path required: true + description: Keycloak user ID schema: type: string - requestBody: + requestBody: required: true content: application/json: @@ -37164,10 +37165,19 @@ components: properties: isActive: type: boolean - responses: - 200: - description: User status updated - 400: + description: Whether the user is active + responses: + "200": + description: User status updated successfully + content: + application/json: + schema: + type: object + properties: + message: + type: string + example: User status updated + "400": description: Invalid request - 500: - description: Internal error \ No newline at end of file + "500": + description: Internal server error \ No newline at end of file From ccd4627226dd5a7c89128ab32528d6e3377968a8 Mon Sep 17 00:00:00 2001 From: Rashi Date: Thu, 19 Mar 2026 14:09:07 +0200 Subject: [PATCH 4/4] clear --- swagger.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/swagger.yaml b/swagger.yaml index 5ac1e6e..8b9775b 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -37140,7 +37140,7 @@ components: description: Client_Id header name: Client_Id in: header - /users/{userId}/status: + /users/severaUserId}/status: put: summary: Update user active status description: Updates the isActive attribute of a user in Keycloak. This attribute determines whether the user is active in the system. @@ -37148,10 +37148,10 @@ components: tags: - Users parameters: - - name: userId + - name: SeveraUserId in: path required: true - description: Keycloak user ID + description: User ID from severa system schema: type: string requestBody: