Block User

Brief description: Since OssnServices 9.0

  • Block a user for a specific profile via API – restrict interactions, enforce privacy, and manage blocked lists programmatically.

Endpoint

Method:

  • POST / GET

Parameter:

Parameter name Required Type Explain
api_key_token Yes string Your API key
to_block_guid Yes integer User ID you wish to block
guid Yes string Which user is trying to block the above user?

Example Response

{
    "merchant": "Open Source Social Network",
    "url": "http:\/\/local.opensource-socialnetwork.org\/",
    "time_token": 1632743559,
    "payload": {
        "success": true,
    },
    "code": "100",
    "message": "Request successfully executed"
}

Services View All