Block user profile

Please use this (https://domyl.com/mobile_api/block_user) API for access user profile blocking endpoint

IMPORTANT!

Please note that if you request this api again, the user will be unblocked. That is, the first call blocks and the second unlocks


Post parameters

Field Value Remarks
session_id Access token ID E.g. de25cc16eb00960f076...
user_id User int ID E.g. 12

Block success response

{
    "code": 200,
    "message": "User profile blocked successfully",
    "data": []
}

Unblock success response

{
    "code": 200,
    "message": "User profile unblocked successfully",
    "data": []
}

Error responses

{
    "code": 401,
    "data": [],
    "message": "Unauthorized Access"
}

{
    "code": 400,
    "message": "User ID is missing or invalid",
    "data": []
}