Method create.site_blocks
Description Creating a block of numbers for the site
Available to Agent, Client

Request parameters

Name Type Required Valid values 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
Required for the agent
To obtain a list of client users, you must use the "get.customer_users" method
site_id number yes Unique site identifier
name string yes Name of the block of numbers

Response parameters

Title Type Required Description
id number yes Unique number block identifier

JSON request structure```json

{ "jsonrpc": "2.0", "id": "number", "method": "create.site_blocks", "params": { "access_token": "string", "user_id": "number", "site_id": "number", "name": "string" } }

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

List of returned errors

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