Method create.phone_number_to_blacklist
Description Adding a phone number to the blacklist and its stages
Available to Agent, Client

Request parameters

Title Type Required Description
access_token string yes Authentication session key
user_id number no Unique user identifier of the agent client on behalf of which the request is made
Is required for the agent
To obtain a list of client users, you must use the method "get.customer_users"
phone_number string yes Phone number
add_comment string no Comment left when adding a phone number to the blacklist

Response parameters

Title Type Required Description
id number yes Unique identifier of a phone number in a blacklist
phone_number string yes Phone number that has been added to the blacklist

JSON request structure```json

{ "jsonrpc": "2.0", "id": "number", "method": "create.phone_number_to_blacklist", "params": { "access_token":"string", "user_id":"number", "phone_number": "string", "add_comment": "string" } }

### JSON response structure```JSON
{
    "jsonrpc": "2.0",
    "id": "number",
    "result": {
        "data": {
            "id": "number",
            "phone_number": "string"
        },
        "metadata": "object"
    }
}

List of returned errors

See the section "List of errors for methods with the create verb"