#Pages

Entity: landingPage | Scope: landing | Base path: /v1/pages

Legacy entity (UPPER_CASE field names) — field names are automatically converted to camelCase.

#Operations

Method Path Description Bitrix24 Method
GET /v1/pages List all (with filter, sort, pagination) landing.landing.getList
GET /v1/pages/:id Get by ID landing.landing.getList
POST /v1/pages Create new landing.landing.add
PATCH /v1/pages/:id Update by ID landing.landing.update
DELETE /v1/pages/:id Delete by ID landing.landing.delete

#Fields

API Name Bitrix24 Name Type Readonly Description
id ID number yes Идентификатор записи
title TITLE string
code CODE string
siteId SITE_ID number
active ACTIVE boolean
description DESCRIPTION string
createdById CREATED_BY_ID number yes
dateCreate DATE_CREATE datetime yes
dateModify DATE_MODIFY datetime yes

#Relations (reference)

Relation Entity Type Foreign Key
site site one siteId

#Examples

#List

Terminal
curl -X GET '/v1/pages?limit=10' \
  -H 'X-Api-Key: YOUR_KEY'

#Get by ID

Terminal
curl -X GET '/v1/pages/123' \
  -H 'X-Api-Key: YOUR_KEY'

#Create

Terminal
curl -X POST '/v1/pages' \
  -H 'X-Api-Key: YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"title":"value","code":"value","siteId":1}'

#Update

Terminal
curl -X PATCH '/v1/pages/123' \
  -H 'X-Api-Key: YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"title":"updated"}'

#Delete

Terminal
curl -X DELETE '/v1/pages/123' \
  -H 'X-Api-Key: YOUR_KEY'

#Batch

Terminal
curl -X POST '/v1/batch' \
  -H 'X-Api-Key: YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"calls":[{"entity":"pages","action":"list","params":{"limit":5}}]}'