block connection
Block User Connection
This endpoint allows a user to block another user. The request must specify both the initiator's user ID and the target user's ID.
Request Parameters
-
initiatorUserId(path parameter): The unique identifier of the user initiating the block action. -
targetUserId(path parameter): The unique identifier of the user to be blocked.
Request Body
The request body does not require any parameters.
Expected Response
Upon successful execution, the API will return a response indicating the status of the block action. The response will typically include:
-
A confirmation message indicating that the user has been successfully blocked.
-
A status code reflecting the outcome of the request (e.g.,
200 OKfor success).
Notes
-
Ensure that the user IDs provided are valid and exist in the system.
-
This action cannot be undone through this endpoint; unblocking will require a separate API call.
-
This API call changes the status on the initiator's connection side.
Authentication#auth
This endpoint does not require authentication.