Skip to content

Creating website

Method create.site_blocks
Description Creating a block of numbers for a website
Who has access Agent, Customer

Parameters of a request

Title Type Required Valid value Description
access_token string yes Authentication session key
user_id number no The ID of an agent's customer user who makes request
Is required for agent
To get a list of customer users you need to use the method "get.customer_users"
site_id number yes Website unique ID
name string yes Numbers block name

Parameters of a reply

dd | Title | Type | Required | Description | | :---- | :----- | :: | :----------------------------- | | id | number | yes | Numbers block unique ID |

JSON request structure

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

JSON reply structure

{
  "jsonrpc": "2.0",
  "id": "number",
  "result": {
    "id": "number",
    "success": "true"
  }
}

List of returning errors

Refer to the section "List of errors for the methods with the verb create"