contact_block
- Inputs
{
"chat_id": "string: optional: excludes other inputs",
"phone_number": "phone number: example: +18885559977: excludes other inputs",
"user_id": "integer: optional: excludes other inputs",
"user_name": "string between 4 to 40 characters: optional: excludes other inputs"
}
- Errors
{
"must_login": "user must be login",
"phone_number": [
{
"null value not allowed": "phone_number is not valid"
}
],
"user_is_already_blocked": "user has been blocked before",
"user_not_found": "input spec is wrong"
}
- Extra Description
Block any user by one of the parameters listed as input
- Sample
- Url:
- Output:
{
"status": "success",
"time": 1526966340.437936
}