Skip to content

Latest commit

 

History

History
91 lines (77 loc) · 2.23 KB

File metadata and controls

91 lines (77 loc) · 2.23 KB
description
API for deleted user

User Deletion API

Overview

The User Deletion API allows authorized users to delete a user from the system. This API requires the user ID of the user to be deleted and is accessible via an HTTP POST request.

Delete a user

POST /api/user/v1/delete

Headers

Name Value
Content-Type* application/json
Authorization* Bearer <token>
X-Authenticated-User-token* <keycloak-access-token>

Body

{% tabs %} {% tab title="Example" %}

{
    "request": {
        "userId": "user id to be deleted"
    }
}

{% endtab %}

{% tab title="Schema" %}

Name Type Description
userId* string User id of the user to be deleted
{% endtab %}
{% endtabs %}

Response

{% tabs %} {% tab title="200" %}

{
    "id": "api.user.delete",
    "ver": "v1",
    "ts": "2024-05-20 10:08:56:812+0000",
    "params": {
        "resmsgid": "e413d019f31bcb2d3736b7054f1fd6e2",
        "msgid": "e413d019f31bcb2d3736b7054f1fd6e2",
        "err": null,
        "status": "SUCCESS",
        "errmsg": null
    },
    "responseCode": "OK",
    "result": {
        "response": "SUCCESS"
    }
}

{% endtab %}

{% tab title="400" %}

{
    "id": "api.user.delete",
    "ver": "v1",
    "ts": "2024-05-20 10:09:45:837+0000",
    "params": {
        "resmsgid": "4abb4c0bdd99feea7a7070eeade15aaa",
        "msgid": "4abb4c0bdd99feea7a7070eeade15aaa",
        "err": "UOS_USRDLT0008",
        "status": "FAILED",
        "errmsg": "User is already deleted."
    },
    "responseCode": "CLIENT_ERROR",
    "result": {}
}

{% endtab %}

{% tab title="403" %}

You do not have permission to perform this operation

{% endtab %} {% endtabs %}