diff --git a/.tasks/573/plan.md b/.tasks/573/plan.md new file mode 100644 index 00000000..063a0a35 --- /dev/null +++ b/.tasks/573/plan.md @@ -0,0 +1,264 @@ +# Plan: Add support for `catalog.roundingRule.*` methods (issue #573) + +## Context + +Bitrix24 REST API exposes a small set of methods to manage catalog price-rounding rules: + +- `catalog.roundingRule.add` — https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-add.html +- `catalog.roundingRule.update` — https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-update.html +- `catalog.roundingRule.get` — https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-get.html +- `catalog.roundingRule.list` — https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-list.html +- `catalog.roundingRule.delete` — https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-delete.html +- `catalog.roundingRule.getFields` — https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-get-fields.html + +Verified live against the test portal (`tests/.env.local` webhook) on 2026-08-12: + +- `add` payload: `{"fields": {"catalogGroupId": int, "price": double, "roundType": int, "roundPrecision": double}}` + → response `{"roundingRule": {...}}`. +- `update` payload: `{"id": int, "fields": {...}}`. **Important**: despite the docs implying a partial + update, the live portal rejects `update` without `catalogGroupId` present in `fields` + (`{"error":"0","error_description":"Required fields: catalogGroupId"}`). So `catalogGroupId` must + always be supplied in `update` fields, same as `add`. +- `get` payload: `{"id": int}` → `{"roundingRule": {...}}`. +- `list` payload: `{"select": [...], "filter": {...}, "order": {...}}` → `{"roundingRules": [...], "total": int}`. + Confirmed the method name is `catalog.roundingRule.list` in camelCase (works correctly on the live + portal; the lowercase `catalog.roundingrule.list` variant shown in one doc source is REST's + case-insensitive routing, not a required naming difference — no custom Batch key mapping is needed). +- `delete` payload: `{"id": int}` → boolean `true`. +- `getFields` → `{"roundingRule": {field: {isImmutable, isReadOnly, isRequired, type}}}`. + +Raw field set (from live `getFields` + `add` response): + +| Field | Type | Notes | +|---|---|---| +| `id` | integer | read-only | +| `catalogGroupId` | integer | required, references `catalog_price_type.id` | +| `price` | double | required, minimum price to apply rounding | +| `roundType` | integer | required, 1 = mathematical, 2 = round up, 4 = round down | +| `roundPrecision` | double | required | +| `createdBy` | integer | read-only | +| `modifiedBy` | integer | read-only | +| `dateCreate` | datetime | read-only → `CarbonImmutable` | +| `dateModify` | datetime | read-only → `CarbonImmutable` | + +This scope is structurally identical to the existing `Services\Catalog\PriceType` scope (flat +add/update/get/list/delete/getFields, single item wrapped as `roundingRule`, list wrapped as +`roundingRules`). + +Verified live: `catalog.roundingRule.delete` rejects the batch-default uppercase `ID` key +(`{"error":"100","error_description":"Could not find value for parameter {id}"}`) and only accepts +lowercase `id` (confirmed success). Inspecting `src/Core/Batch.php::deleteEntityItems` (line ~127) +shows the base implementation **hardcodes** `'ID' => $itemId` directly — it does not consult +`determineKeyId()` at all for the delete path (that hook is only used elsewhere, e.g. +`getLastElementId`). So, exactly as `Catalog\PriceType\Batch` already does, a full override of +`deleteEntityItems()` is required (not just `determineKeyId()`) to send lowercase `id`. Copy +`Catalog\PriceType\Batch::deleteEntityItems` verbatim into `Catalog\RoundingRule\Batch`, adjusting +log messages from "price type" to "rounding rule". + +No `RoundType` enum class is added — `roundType` stays a plain `int` (the API returns/accepts a raw +integer, not an enum reference; unlike `catalog.enum.*`, `roundingRule.getFields` documents it as +`type: integer`, not a reference to `catalog_rounding_rule_round_type`). This matches how +`PriceType::base` etc. are annotated as raw scalars in this SDK. + +## Files to Create + +### 1. `src/Services/Catalog/RoundingRule/Result/RoundingRuleItemResult.php` + +```php + $itemId]` instead of the base class's hardcoded `['ID' => $itemId]`), since +`Core\Batch::deleteEntityItems` does not consult `determineKeyId()` for the delete path — verified +live that the base uppercase `ID` key is rejected by `catalog.roundingRule.delete`. + +### 8. `src/Services/Catalog/RoundingRule/Service/RoundingRule.php` + +Methods: `add(array $fields)`, `update(int $id, array $fields)`, `get(int $id)`, +`list(array $select = [], array $filter = [], array $order = [])`, `delete(int $id)`, +`getFields()`. Same shape as `Catalog\PriceType\Service\PriceType`, constructor takes +`public Batch $batch`. `#[ApiServiceMetadata(new Scope(['catalog']))]` on the class, +`#[ApiEndpointMetadata(...)]` on each method with links from the Context section above. + +### 9. `src/Services/Catalog/RoundingRule/Service/Batch.php` + +Batch-mode service: `add(array $roundingRules): Generator`, +`update(array $roundingRules): Generator`, +`delete(array $roundingRuleId): Generator`. Mirrors +`Catalog\PriceType\Service\Batch`. + +### 10. `tests/Unit/Services/Catalog/RoundingRule/Service/RoundingRuleTest.php` + +Unit test using `NullCore`/`NullBatch`, following the repository's standard unit test pattern +(`docs/testing.md`) — verifies each method issues the right core call without HTTP. + +### 11. `tests/Integration/Services/Catalog/RoundingRule/Service/RoundingRuleTest.php` + +Mirrors `PriceType/Service/PriceTypeTest.php`: `testAddGetDelete`, `testUpdate`, `testList`, +`testGetFields`. Needs a valid `catalogGroupId` — reuse the portal's base price type (`catalog.priceType.list` +filtered by `base: 'Y'`) rather than hardcoding id `1`, to avoid environment coupling; resolve it once in +`setUp()` via `Factory::getServiceBuilder()->getCatalogScope()->priceType()->list([], ['base' => 'Y'])`. + +### 12. `tests/Integration/Services/Catalog/RoundingRule/Service/BatchTest.php` + +Mirrors `PriceType/Service/BatchTest.php`: `testAddUpdateDelete`. + +### 13. `tests/Integration/Services/Catalog/RoundingRule/Result/RoundingRuleItemResultTest.php` + +Mandatory annotation/type-cast test per `docs/testing.md` and skill guidance — two methods: +`testAllFieldsAreAnnotated`, `testAllFieldsHasValidTypeCastingInMagicGetters`. + +--- + +## Files to Modify + +### 1. `src/Services/Catalog/CatalogServiceBuilder.php` + +Add: + +```php +public function roundingRule(): Catalog\RoundingRule\Service\RoundingRule +{ + if (!isset($this->serviceCache[__METHOD__])) { + $this->serviceCache[__METHOD__] = new Catalog\RoundingRule\Service\RoundingRule( + new Catalog\RoundingRule\Service\Batch( + new Catalog\RoundingRule\Batch($this->core, $this->log), + $this->log + ), + $this->core, + $this->log + ); + } + + return $this->serviceCache[__METHOD__]; +} +``` + +Insert after `priceTypeGroup()` (or any alphabetically sensible spot near the other `PriceType*` +methods), following existing ordering conventions in the file. + +### 2. `phpunit.xml.dist` + +Add after the `integration_tests_catalog_price_type_group` block (around line 546): + +```xml + + ./tests/Integration/Services/Catalog/RoundingRule/ + +``` + +### 3. `Makefile` + +Add after `test-integration-catalog-price-type-group` target (around line 902): + +```makefile +.PHONY: test-integration-catalog-rounding-rule +test-integration-catalog-rounding-rule: + docker compose run --rm php-cli $(PHPUNIT) --testsuite integration_tests_catalog_rounding_rule +``` + +Also add a row to the Catalog integration-test table in `docs/testing.md`. + +### 4. `docs/testing.md` + +Add a `make test-integration-catalog-rounding-rule` row to the "Tests — integration (Catalog)" +table (the second one, alongside `test-integration-scope-catalog`). + +### 5. `CHANGELOG.md` + +Add under `## Unreleased` → `### Added`, at the top of the list: + +```markdown +- Added service `Services\Catalog\RoundingRule` with support methods, + see [catalog.roundingRule.* methods](https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/index.html) ([#573](https://github.com/bitrix24/b24phpsdk/issues/573)): + - `add` creates a new price rounding rule, with batch calls support + - `update` updates an existing price rounding rule, with batch calls support + - `list` gets the list of price rounding rules + - `delete` deletes a price rounding rule, with batch calls support + - `get` gets information about a price rounding rule by its identifier + - `getFields` returns the description of price rounding rule fields +``` + +--- + +## Deptrac compliance + +New code lives entirely under `src/Services/Catalog/RoundingRule/` (Services layer) and only +depends on `Core` (via `AbstractService`, `AbstractAnnotatedItem`, `AbstractResult`, +`Core\Batch`, `Core\Result\DeletedItemResult`, `Core\Result\DeletedItemBatchResult`, +`Core\Response\DTO\ResponseData`) — matches the pattern of every existing Catalog sub-scope, so no +new deptrac rule or `skip_violations` entry is required. `src/Services/Catalog/` and +`tests/Integration/Services/Catalog/` are already wildcard-covered in `phpstan.neon.dist`, +`.php-cs-fixer.php`, and `rector.php`. + +## Verification + +```bash +make lint-cs-fixer +make lint-rector +make lint-phpstan +make lint-deptrac +make test-unit +make test-integration-catalog-rounding-rule +``` diff --git a/CHANGELOG.md b/CHANGELOG.md index 4196370d..65dc6fe0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ ### Added +- Added service `Services\Catalog\RoundingRule` with support methods, + see [catalog.roundingRule.* methods](https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/index.html) ([#573](https://github.com/bitrix24/b24phpsdk/issues/573)): + - `add` creates a new price rounding rule, with batch calls support + - `update` updates an existing price rounding rule, with batch calls support + - `list` gets the list of price rounding rules + - `delete` deletes a price rounding rule, with batch calls support + - `get` gets information about a price rounding rule by its identifier + - `getFields` returns the description of price rounding rule fields - Added service `Services\Catalog\Document` with support methods, see [catalog.document.* methods](https://apidocs.bitrix24.com/api-reference/catalog/document/index.html) ([#559](https://github.com/bitrix24/b24phpsdk/issues/559)): - `add` creates a new warehouse accounting document, with batch calls support @@ -93,6 +101,19 @@ ### Fixed +- Fixed `make lint-rector` failing with `Undefined constant Rector\PHPUnit\Set\PHPUnitSetList::PHPUNIT_110`: + the versioned PHPUnit set constants (`PHPUNIT_60`, `PHPUNIT_90`, `PHPUNIT_110`, etc.) were removed + from `rector/rector-phpunit` in the installed Rector version and replaced with consolidated sets + (`PHPUNIT_CODE_QUALITY`, `PHPUNIT_MOCK_TO_STUB`, `PHPUNIT_NARROW_ASSERTS`, `ANNOTATIONS_TO_ATTRIBUTES`). + Compared the dry-run impact of each candidate: `PHPUNIT_CODE_QUALITY` would touch 477 files, + `PHPUNIT_NARROW_ASSERTS` 91 files — both unrelated repository-wide style changes out of scope here. + `ANNOTATIONS_TO_ATTRIBUTES` (migrates legacy `@annotation` docblocks to PHP 8 attributes, the closest + match to what `PHPUNIT_110` used to cover) touches 0 files, since the codebase already uses PHP 8 + attributes everywhere; replaced the obsolete `PHPUnitSetList::PHPUNIT_110` reference in `rector.php` + with `PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES` +- Removed the obsolete `Rector\Php84\Rector\Class_\DeprecatedAnnotationToDeprecatedAttributeRector` + entry from `rector.php` → `withSkip()`: the rule is deprecated and no longer registered in the + installed Rector version, so `make lint-rector` reported it as a dead skip entry - Fixed `make lint-rector` failing with `Unknown named parameter $strictBooleans`: the `strictBooleans` parameter was removed from `RectorConfigBuilder::withPreparedSets()` in the installed Rector version; removed the obsolete `strictBooleans: false` entry diff --git a/Makefile b/Makefile index 3488eaf6..5c9df03b 100644 --- a/Makefile +++ b/Makefile @@ -943,6 +943,10 @@ test-integration-catalog-document-element: test-integration-catalog-document-element-annotations: docker compose run --rm php-cli $(PHPUNIT) --testsuite integration_tests_catalog_document_element_annotations +.PHONY: test-integration-catalog-rounding-rule +test-integration-catalog-rounding-rule: + docker compose run --rm php-cli $(PHPUNIT) --testsuite integration_tests_catalog_rounding_rule + # work dev environment .PHONY: php-dev-server-up php-dev-server-up: diff --git a/docs/open-api/openapi.json b/docs/open-api/openapi.json index 7bd96ea4..ac2c8dab 100644 --- a/docs/open-api/openapi.json +++ b/docs/open-api/openapi.json @@ -1 +1 @@ -{"openapi":"3.0.0","info":{"title":"Bitrix24 REST V3 API","version":"1.0.0"},"servers":[],"tags":[{"name":"call","description":"call module methods"},{"name":"humanresources","description":"humanresources module methods"},{"name":"mail","description":"mail module methods"},{"name":"main","description":"main module methods"},{"name":"note","description":"note module methods"},{"name":"rest","description":"rest module methods"},{"name":"tasks","description":"tasks module methods"},{"name":"timeman","description":"timeman module methods"},{"name":"vibecodeconnector","description":"vibecodeconnector module methods"}],"paths":{"\/call.followup.get":{"post":{"tags":["call"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"callId":{"type":"integer","example":1},"select":{"type":"array","items":{"type":"string"},"example":["callId","callType","initiatorId","startDate","endDate","durationSeconds","uuid","language","version","participants","outcomes","createdAt","tracks","transcription","overview","summary","insights","evaluation"]},"mentionFormat":{"type":"string","example":"string"}},"required":["callId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/call.followup.list":{"post":{"tags":["call"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["callId","callType","initiatorId","startDate","endDate","durationSeconds","uuid","language","version","participants","outcomes","createdAt","tracks","transcription","overview","summary","insights","evaluation"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object"},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}},"mentionFormat":{"type":"string","example":"string"}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.employee.search":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["userId","name","workPosition","avatar","url","departments","teams"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object"},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.humanresources.employeedto"}}}}}}}}}},"\/humanresources.employee.subordinates":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"select":{"type":"array","items":{"type":"string"},"example":["userId","name","workPosition","avatar","url","departments","teams"]}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.employee.count":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.employee.multidepartment":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.get":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"select":{"type":"array","items":{"type":"string"},"example":["id","name","type","structureId","parentId","description","accessCode","userCount","colorName","xmlId","createdAt","updatedAt","members"]}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.humanresources.nodedto"}}}}}}}}}}},"\/humanresources.node.list":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","name","type","structureId","parentId","description","accessCode","userCount","colorName","xmlId","createdAt","updatedAt","members"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object","properties":{"id":{"type":"string","example":"ASC"},"name":{"type":"string","example":"ASC"},"createdAt":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.humanresources.nodedto"}}}}}}}}}},"\/humanresources.node.search":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","name","type","structureId","parentId","description","accessCode","userCount","colorName","xmlId","createdAt","updatedAt","members"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object","properties":{"id":{"type":"string","example":"ASC"},"name":{"type":"string","example":"ASC"},"createdAt":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.humanresources.nodedto"}}}}}}}}}},"\/humanresources.node.count":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.children":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"select":{"type":"array","items":{"type":"string"},"example":["id","name","type","structureId","parentId","description","accessCode","userCount","colorName","xmlId","createdAt","updatedAt","members"]}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.humanresources.nodedto"}}}}}}}}}},"\/humanresources.node.add":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.edit":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.move":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.communication.list":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.communication.edit":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.member.move":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.member.remove":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.member.add":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.member.set":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.mailbox.get":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"select":{"type":"array","items":{"type":"string"},"example":["id","name","email","senderName"]}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.mail.mailboxdto"}}}}}}}}}}},"\/mail.mailbox.list":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","name","email","senderName"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object"},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.mail.mailboxdto"}}}}}}}}}},"\/mail.mailbox.senders":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","name","email","senderName"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object"},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.mail.mailboxdto"}}}}}}}}}},"\/mail.message.get":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"select":{"type":"array","items":{"type":"string"},"example":["id","mailboxId","mailboxEmail","subject","from","to","cc","date","isSeen","hasAttachments","url","bindings","body"]}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.mail.messagedto"}}}}}}}}}}},"\/mail.message.list":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","mailboxId","mailboxEmail","subject","from","to","cc","date","isSeen","hasAttachments","url","bindings","body"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object"},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.mail.messagedto"}}}}}}}}}},"\/mail.message.send":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.message.reply":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.message.forward":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.message.createcrmactivity":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/mail.message.removecrmactivity":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/mail.message.thread":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"select":{"type":"array","items":{"type":"string"},"example":["id","mailboxId","mailboxEmail","subject","from","to","cc","date","isSeen","hasAttachments","url","bindings","body"]}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.message.movetofolder":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.message.createtask":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.message.createcalendarevent":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.message.createchat":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.message.createfeedpost":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.recipient.listcontacts":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","email","name"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object"},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.mail.recipientdto"}}}}}}}}}},"\/mail.recipient.listemployees":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","email","name"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object"},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.mail.recipientdto"}}}}}}}}}},"\/main.eventlog.list":{"post":{"summary":"Get record list","description":"Retrieves a list of specified records.","tags":["main"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","timestampX","severity","auditTypeId","moduleId","itemId","remoteAddr","userAgent","requestUri","siteId","userId","guestId","description"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object","properties":{"id":{"type":"string","example":"ASC"},"timestampX":{"type":"string","example":"ASC"},"auditTypeId":{"type":"string","example":"ASC"},"userId":{"type":"string","example":"ASC"},"guestId":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.main.eventlogdto"}}}}}}}}}},"\/main.eventlog.get":{"post":{"summary":"Get record","description":"Retrieves a record by the specified ID.","tags":["main"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"select":{"type":"array","items":{"type":"string"},"example":["id","timestampX","severity","auditTypeId","moduleId","itemId","remoteAddr","userAgent","requestUri","siteId","userId","guestId","description"]}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.main.eventlogdto"}}}}}}}}}}},"\/main.eventlog.tail":{"post":{"summary":"Get recent records","description":"Retrieves the most recent records.","tags":["main"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","timestampX","severity","auditTypeId","moduleId","itemId","remoteAddr","userAgent","requestUri","siteId","userId","guestId","description"]},"filter":{"type":"array"},"cursor":{"type":"object","example":{"field":"id","value":0,"order":"ASC"}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.main.eventlogdto"}}}}}}}}}},"\/note.collection.list":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"pagination":{"type":"object","properties":{"limit":{"type":"integer"},"afterCursor":{"type":"object","properties":{"position":{"type":"integer"},"id":{"type":"integer"}}}}}}}}}},"responses":{"200":{"content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.note.collectionitemdto"}},"nextCursor":{"type":"object","nullable":true,"properties":{"position":{"type":"integer"},"id":{"type":"integer"}}}}}}}}}}}}},"\/note.collection.get":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"select":{"type":"array","items":{"type":"string"},"example":["id","name","position","policyLevel","createdBy","createdAt","updatedBy","updatedAt"]}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.note.collectionitemdto"}}}}}}}}}}},"\/note.collection.add":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","properties":{"name":{"type":"string"},"position":{"type":"integer","format":"int64"}},"required":["name"]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.note.collectionitemdto"}}}}}}}}}}},"\/note.collection.update":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"fields":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.note.collectionitemdto"}}}}}}}}}}},"\/note.collection.archive":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/note.collection.delete":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/note.document.get":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"select":{"type":"array","items":{"type":"string"},"example":["id","collectionId","parentId","title","markdown","position","createdBy","updatedBy","createdAt","updatedAt"]}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.note.documentitemdto"}}}}}}}}}}},"\/note.document.add":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","properties":{"collectionId":{"type":"integer","format":"int64"},"parentId":{"type":"integer","format":"int64"},"title":{"type":"string"},"markdown":{"type":"string"}},"required":["collectionId","title"]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.note.documentitemdto"}}}}}}}}}}},"\/note.document.update":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"overwrite":{"type":"boolean","example":true},"id":{"type":"integer","example":1},"fields":{"type":"object","properties":{"title":{"type":"string"},"markdown":{"type":"string"}}},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.note.documentitemdto"}}}}}}}}}}},"\/note.document.archive":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/note.document.delete":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/note.document.tree.list":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["collectionId"],"properties":{"collectionId":{"type":"integer"}}}}}},"responses":{"200":{"content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.note.documenttreeitemdto"}},"truncated":{"type":"boolean"}}}}},"example":{"result":{"items":[{"id":10,"collectionId":123,"parentId":null,"title":"Введение","position":1,"children":[{"id":11,"collectionId":123,"parentId":10,"title":"Глава 1","position":1,"children":[]}]}],"truncated":false}}}}}}}},"\/note.document.search.list":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["query"],"properties":{"query":{"type":"string"},"pagination":{"type":"object","properties":{"limit":{"type":"integer"}}}}}}}},"responses":{"200":{"content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.note.searchresultitemdto"}},"hasMore":{"type":"boolean"}}}}}}}}}}},"\/note.file.add":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"documentId":{"type":"integer","example":1},"fileName":{"type":"string","example":"string"},"fileContent":{"type":"string","example":"string"}},"required":["documentId","fileName","fileContent"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.note.fileitemdto"}}}}}}}}}}},"\/note.file.get":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"documentId":{"type":"integer","example":1}},"required":["id","documentId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.note.fileitemdto"}}}}}}}}}}},"\/rest.scope.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"filterModule":{"type":"string","example":"string"},"filterController":{"type":"string","example":"string"},"filterMethod":{"type":"string","example":"string"}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/rest.documentation.openapi":{"post":{"summary":"Open API Documentation","description":"Retrieves documentation in Open API format.","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"summary":"Open API Documentation","description":"Retrieves documentation in Open API format.","tags":["rest"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/call.followup.field.list":{"post":{"tags":["call"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/call.followup.field.get":{"post":{"tags":["call"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/humanresources.employee.field.list":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/humanresources.employee.field.get":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/humanresources.node.field.list":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/humanresources.node.field.get":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/humanresources.node.member.field.list":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/humanresources.node.member.field.get":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/mail.mailbox.field.list":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/mail.mailbox.field.get":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/mail.message.field.list":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/mail.message.field.get":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/mail.recipient.field.list":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/mail.recipient.field.get":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/main.eventlog.field.list":{"post":{"tags":["main"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/main.eventlog.field.get":{"post":{"tags":["main"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/note.collection.field.list":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/note.collection.field.get":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/note.document.field.list":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/note.document.field.get":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/note.document.tree.field.list":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/note.document.tree.field.get":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/note.document.search.field.list":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/note.document.search.field.get":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/note.file.field.list":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/note.file.field.get":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.app.scoperequest.field.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/rest.app.scoperequest.field.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.application.field.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/rest.application.field.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.incomingwebhook.field.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/rest.incomingwebhook.field.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.application.access.field.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/rest.application.access.field.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.application.embedding.field.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/rest.application.embedding.field.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.application.local.field.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/rest.application.local.field.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.application.personal.field.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/rest.application.personal.field.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.application.placement.field.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/rest.application.placement.field.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/tasks.task.field.list":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/tasks.task.field.get":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/tasks.task.chat.message.field.list":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/tasks.task.chat.message.field.get":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/tasks.task.result.field.list":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/tasks.task.result.field.get":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/timeman.record.field.list":{"post":{"tags":["timeman"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/timeman.record.field.get":{"post":{"tags":["timeman"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/vibecodeconnector.catalog.item.field.list":{"post":{"tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/vibecodeconnector.catalog.item.field.get":{"post":{"tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/vibecodeconnector.catalog.item.access.field.list":{"post":{"tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/vibecodeconnector.catalog.item.access.field.get":{"post":{"tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/vibecodeconnector.catalog.item.pin.field.list":{"post":{"tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/vibecodeconnector.catalog.item.pin.field.get":{"post":{"tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.app.scoperequest.add":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","properties":{"scopes":{"type":"array"},"comment":{"type":"string"}},"required":["scopes","comment"]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.scoperequestdto"}}}}}}}}}}},"\/rest.app.scoperequest.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"select":{"type":"array","items":{"type":"string"},"example":["id","appId","scopes","status","currentState","comment","createdAt","history"]}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.scoperequestdto"}}}}}}}}}}},"\/rest.app.scoperequest.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","appId","scopes","status","currentState","comment","createdAt","history"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object","properties":{"id":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.scoperequestdto"}}}}}}}}}},"\/rest.application.getbyclientid":{"post":{"summary":"Returns the application by OAuth client ID","description":"Request example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["id","clientId","clientSecret","applicationToken","scopes","title","url","urlInstall","urlSettings","mobile","version","active","installed","dateCreate","dateInstall","attributes"]}},"required":["clientId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.appdto"}}}}}}}}}}},"\/rest.application.list":{"post":{"summary":"Returns a list of installed applications","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"attributes":{"type":"array"},"select":{"type":"array","items":{"type":"string"},"example":["id","clientId","clientSecret","applicationToken","scopes","title","url","urlInstall","urlSettings","mobile","version","active","installed","dateCreate","dateInstall","attributes"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object","properties":{"id":{"type":"string","example":"ASC"},"clientId":{"type":"string","example":"ASC"},"title":{"type":"string","example":"ASC"},"version":{"type":"string","example":"ASC"},"dateCreate":{"type":"string","example":"ASC"},"dateInstall":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}},"required":["attributes"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.appdto"}}}}}}}}}},"\/rest.incomingwebhook.add":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"title":{"type":"string","example":"string"},"scopes":{"type":"array"},"attributes":{"type":"array"},"select":{"type":"array","items":{"type":"string"},"example":["url","scopes","title","active","userId","dateCreate","attributes"]}},"required":["title","scopes","attributes"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.incomingwebhookdto"}}}}}}}}}}},"\/rest.incomingwebhook.update":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"fields":{"type":"object","properties":{"scopes":{"type":"array"},"title":{"type":"string"}}}},"required":["id","fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/rest.incomingwebhook.delete":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/rest.incomingwebhook.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["url","scopes","title","active","userId","dateCreate","attributes"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object","properties":{"dateCreate":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.incomingwebhookdto"}}}}}}}}}},"\/rest.application.access.set":{"post":{"summary":"Sets the application access codes","description":"Replaces all existing access codes for the application with the provided ones.\n\t\tFor personal applications, the owner user access code is always added to the saved access codes.\n\t\tAccess codes define which users or groups can use the application.\n\t\tAdministrators and personal application owners always have access regardless of access codes.\n\t\tFor shared applications, if no access codes are set, the application is available to everyone.\n\t\tFor personal applications, if no access codes are set, only the owner and administrators have access.\n\t\tRequest example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022,\n\t\t\t\u0022codes\u0022: [\u0022UA\u0022, \u0022D1\u0022]\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["clientId","codes"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/rest.application.access.delete":{"post":{"summary":"Deletes the application access codes","description":"Removes specified access codes from the application.\n\t\tOnly the provided codes are removed; other existing codes remain unchanged.\n\t\tAdministrators and personal application owners always have access regardless of access codes.\n\t\tRequest example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022,\n\t\t\t\u0022codes\u0022: [\u0022D1\u0022]\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["clientId","codes"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/rest.application.access.reset":{"post":{"summary":"Resets the application access to default values","description":"Removes all custom access codes and restores the default access settings for the application.\n\t\tFor personal applications, the default is the owner and administrators only.\n\t\tFor shared applications, the default is no restrictions (available to everyone).\n\t\tRequest example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"}},"required":["clientId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/rest.application.access.get":{"post":{"summary":"Returns the application access codes","description":"Returns the current access codes assigned to the application,\n\t\tincluding detailed information about each code (provider and display name).\n\t\tAdministrators and personal application owners always have access regardless of access codes.\n\t\tFor shared applications, if no access codes are set, the application is available to everyone.\n\t\tFor personal applications, if no access codes are set, only the owner and administrators have access.\n\t\tRequest example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["clientId","codes","codesDetails"]}},"required":["clientId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.accessdto"}}}}}}}}}}},"\/rest.application.embedding.list":{"post":{"summary":"Returns a list of application embedding areas","description":"Request example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["id","userId","placement","handler","title","description","groupName","additional","options","languages"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object"},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}},"required":["clientId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.embeddingdto"}}}}}}}}}},"\/rest.application.embedding.add":{"post":{"summary":"Adds a new application embedding area","description":"Request example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022,\n\t\t\t\u0022placement\u0022: \u0022IM_CONTEXT_MENU\u0022,\n\t\t\t\u0022handler\u0022: \u0022https:\/\/example.com\/embed\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"},"placement":{"type":"string","example":"string"},"handler":{"type":"string","example":"string"},"userId":{"type":"integer","example":1},"title":{"type":"string","example":"string"},"description":{"type":"string","example":"string"},"groupName":{"type":"string","example":"string"},"settings":{"type":"array"},"languages":{"type":"array"}},"required":["clientId","placement","handler","userId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/rest.application.embedding.delete":{"post":{"summary":"Deletes an existing embedding area","description":"If `handler` is provided, only the embedding with that handler will be deleted.\n\t\tIf `userId` is provided, only the embedding for that user will be deleted.\n\t\tRequest example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022,\n\t\t\t\u0022placement\u0022:\u0022IM_CONTEXT_MENU\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"},"placement":{"type":"string","example":"string"},"handler":{"type":"string","example":"string"},"userId":{"type":"integer","example":1}},"required":["clientId","placement"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/rest.application.local.install":{"post":{"summary":"Installs a local shared application","description":"Request example:\n\t\t{\n\t\t\t\u0022title\u0022: \u0022Test application\u0022,\n\t\t\t\u0022handlerUrl\u0022: \u0022https:\/\/example.com\u0022,\n\t\t\t\u0022scopes\u0022: [\u0022crm\u0022],\n\t\t\t\u0022mobile\u0022: false,\n\t\t\t\u0022menuTitles\u0022: {\n\t\t\t\t\u0022en\u0022: \u0022Test application\u0022\n\t\t\t}\n\t\t}\n\t\tIf `menuTitles` is omitted, the application is installed as API-only: \n\t\tit is not shown in the Bitrix24 interface, and its only way to access the portal is through the REST API, \n\t\tbut it can still add embeddings.","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"title":{"type":"string","example":"string"},"handlerUrl":{"type":"string","example":"string"},"scopes":{"type":"array"},"mobile":{"type":"boolean","example":true},"menuTitles":{"type":"array"},"clientId":{"type":"string","example":"string"},"applicationToken":{"type":"string","example":"string"},"attributes":{"type":"array"},"select":{"type":"array","items":{"type":"string"},"example":["id","clientId","clientSecret","applicationToken","scopes","title","url","urlInstall","urlSettings","mobile","version","active","installed","dateCreate","dateInstall","attributes"]}},"required":["title","handlerUrl","scopes","mobile","menuTitles","attributes"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.appdto"},"oauthToken":{"$ref":"#\/components\/schemas\/bitrix.rest.oauthtokendto"}}}}}}}}}}},"\/rest.application.local.uninstall":{"post":{"summary":"Uninstalls an existing local shared application","description":"Request example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"}},"required":["clientId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/rest.application.personal.install":{"post":{"summary":"Installs a local personal application","description":"Request example:\n\t\t{\n\t\t\t\u0022title\u0022: \u0022Test application\u0022,\n\t\t\t\u0022handlerUrl\u0022: \u0022https:\/\/example.com\u0022,\n\t\t\t\u0022scopes\u0022: [\u0022crm\u0022],\n\t\t\t\u0022mobile\u0022: false,\n\t\t\t\u0022menuTitles\u0022: {\n\t\t\t\t\u0022en\u0022: \u0022Test application\u0022\n\t\t\t}\n\t\t}\n\t\tIf `menuTitles` is omitted, the application is installed as API-only: \n\t\tit is not shown in the Bitrix24 interface, and its only way to access the portal is through the REST API, \n\t\tbut it can still add embeddings.","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"title":{"type":"string","example":"string"},"handlerUrl":{"type":"string","example":"string"},"scopes":{"type":"array"},"mobile":{"type":"boolean","example":true},"menuTitles":{"type":"array"},"clientId":{"type":"string","example":"string"},"applicationToken":{"type":"string","example":"string"},"attributes":{"type":"array"},"select":{"type":"array","items":{"type":"string"},"example":["id","clientId","clientSecret","applicationToken","scopes","title","url","urlInstall","urlSettings","mobile","version","active","installed","dateCreate","dateInstall","attributes"]}},"required":["title","handlerUrl","scopes","mobile","menuTitles","attributes"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.appdto"},"oauthToken":{"$ref":"#\/components\/schemas\/bitrix.rest.oauthtokendto"}}}}}}}}}}},"\/rest.application.personal.uninstall":{"post":{"summary":"Uninstalls an existing local personal application","description":"Request example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"}},"required":["clientId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/rest.application.placement.list":{"post":{"summary":"Returns a list of available embedding areas","description":"If `scope` is provided, only placements for that scope are returned, and other parameters are ignored.\n\t\tIf `showAll` is `true`, all available placements are returned.\n\t\tIf `clientId` is provided, only placements available to that application are returned.\n\t\tIf no parameters are provided, all available placements are returned.\n\t\tRequest example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"},"scope":{"type":"string","example":"string"},"showAll":{"type":"boolean","example":true}},"required":["showAll"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/rest.portal.license.get":{"post":{"summary":"Gets portal license information","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"summary":"Gets portal license information","tags":["rest"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/tasks.task.update":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"fields":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"responsibleId":{"type":"integer","format":"int64"},"deadline":{"type":"string","format":"date-time"},"needsControl":{"type":"boolean"},"startPlan":{"type":"string","format":"date-time"},"endPlan":{"type":"string","format":"date-time"},"fileIds":{"type":"array"},"checklist":{"type":"array"},"groupId":{"type":"integer","format":"int64"},"stageId":{"type":"integer","format":"int64"},"epicId":{"type":"integer","format":"int64"},"storyPoints":{"type":"integer","format":"int64"},"flowId":{"type":"integer","format":"int64"},"priority":{"type":"string"},"status":{"type":"string"},"statusChanged":{"type":"string","format":"date-time"},"parentId":{"type":"integer","format":"int64"},"containsChecklist":{"type":"boolean"},"containsSubTasks":{"type":"boolean"},"containsRelatedTasks":{"type":"boolean"},"containsGanttLinks":{"type":"boolean"},"containsPlacements":{"type":"boolean"},"containsResults":{"type":"boolean"},"numberOfReminders":{"type":"integer","format":"int64"},"chatId":{"type":"integer","format":"int64"},"plannedDuration":{"type":"integer","format":"int64"},"actualDuration":{"type":"integer","format":"int64"},"durationType":{"type":"string"},"started":{"type":"string","format":"date-time"},"estimatedTime":{"type":"integer","format":"int64"},"replicate":{"type":"boolean"},"changed":{"type":"string","format":"date-time"},"changedById":{"type":"integer","format":"int64"},"statusChangedById":{"type":"integer","format":"int64"},"closedById":{"type":"integer","format":"int64"},"closed":{"type":"string","format":"date-time"},"activity":{"type":"string","format":"date-time"},"guid":{"type":"string"},"xmlId":{"type":"string"},"exchangeId":{"type":"string"},"exchangeModified":{"type":"string"},"outlookVersion":{"type":"integer","format":"int64"},"mark":{"type":"string"},"allowsChangeDeadline":{"type":"boolean"},"allowsTimeTracking":{"type":"boolean"},"matchesWorkTime":{"type":"boolean"},"addInReport":{"type":"boolean"},"isMultitask":{"type":"boolean"},"siteId":{"type":"string"},"forkedByTemplateId":{"type":"integer","format":"int64"},"deadlineCount":{"type":"integer","format":"int64"},"declineReason":{"type":"string"},"forumTopicId":{"type":"integer","format":"int64"},"link":{"type":"string"},"rights":{"type":"array"},"archiveLink":{"type":"string"},"crmItemIds":{"type":"array"},"reminders":{"type":"array"},"requireResult":{"type":"boolean"},"matchesSubTasksTime":{"type":"boolean"},"autocompleteSubTasks":{"type":"boolean"},"allowsChangeDatePlan":{"type":"boolean"},"emailId":{"type":"integer","format":"int64"},"maxDeadlineChangeDate":{"type":"string","format":"date-time"},"maxDeadlineChanges":{"type":"integer","format":"int64"},"requireDeadlineChangeReason":{"type":"boolean"},"inFavorite":{"type":"array"},"inPin":{"type":"array"},"inGroupPin":{"type":"array"},"inMute":{"type":"array"},"dependsOn":{"type":"array"},"scenarios":{"type":"array"}}},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/tasks.task.delete":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/tasks.task.add":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"creatorId":{"type":"integer","format":"int64"},"responsibleId":{"type":"integer","format":"int64"},"deadline":{"type":"string","format":"date-time"},"needsControl":{"type":"boolean"},"startPlan":{"type":"string","format":"date-time"},"endPlan":{"type":"string","format":"date-time"},"fileIds":{"type":"array"},"checklist":{"type":"array"},"groupId":{"type":"integer","format":"int64"},"stageId":{"type":"integer","format":"int64"},"epicId":{"type":"integer","format":"int64"},"storyPoints":{"type":"integer","format":"int64"},"flowId":{"type":"integer","format":"int64"},"priority":{"type":"string"},"status":{"type":"string"},"statusChanged":{"type":"string","format":"date-time"},"parentId":{"type":"integer","format":"int64"},"containsChecklist":{"type":"boolean"},"containsSubTasks":{"type":"boolean"},"containsRelatedTasks":{"type":"boolean"},"containsGanttLinks":{"type":"boolean"},"containsPlacements":{"type":"boolean"},"containsResults":{"type":"boolean"},"numberOfReminders":{"type":"integer","format":"int64"},"chatId":{"type":"integer","format":"int64"},"plannedDuration":{"type":"integer","format":"int64"},"actualDuration":{"type":"integer","format":"int64"},"durationType":{"type":"string"},"started":{"type":"string","format":"date-time"},"estimatedTime":{"type":"integer","format":"int64"},"replicate":{"type":"boolean"},"changed":{"type":"string","format":"date-time"},"changedById":{"type":"integer","format":"int64"},"statusChangedById":{"type":"integer","format":"int64"},"closedById":{"type":"integer","format":"int64"},"closed":{"type":"string","format":"date-time"},"activity":{"type":"string","format":"date-time"},"guid":{"type":"string"},"xmlId":{"type":"string"},"exchangeId":{"type":"string"},"exchangeModified":{"type":"string"},"outlookVersion":{"type":"integer","format":"int64"},"mark":{"type":"string"},"allowsChangeDeadline":{"type":"boolean"},"allowsTimeTracking":{"type":"boolean"},"matchesWorkTime":{"type":"boolean"},"addInReport":{"type":"boolean"},"isMultitask":{"type":"boolean"},"siteId":{"type":"string"},"forkedByTemplateId":{"type":"integer","format":"int64"},"deadlineCount":{"type":"integer","format":"int64"},"declineReason":{"type":"string"},"forumTopicId":{"type":"integer","format":"int64"},"link":{"type":"string"},"rights":{"type":"array"},"archiveLink":{"type":"string"},"crmItemIds":{"type":"array"},"reminders":{"type":"array"},"requireResult":{"type":"boolean"},"matchesSubTasksTime":{"type":"boolean"},"autocompleteSubTasks":{"type":"boolean"},"allowsChangeDatePlan":{"type":"boolean"},"emailId":{"type":"integer","format":"int64"},"maxDeadlineChangeDate":{"type":"string","format":"date-time"},"maxDeadlineChanges":{"type":"integer","format":"int64"},"requireDeadlineChangeReason":{"type":"boolean"},"inFavorite":{"type":"array"},"inPin":{"type":"array"},"inGroupPin":{"type":"array"},"inMute":{"type":"array"},"dependsOn":{"type":"array"},"scenarios":{"type":"array"}},"required":["title","creatorId","responsibleId"]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.tasks.taskdto"}}}}}}}}}}},"\/tasks.task.get":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"select":{"type":"array","items":{"type":"string"},"example":["id","title","description","creatorId","created","responsibleId","deadline","needsControl","startPlan","endPlan","fileIds","checklist","groupId","stageId","epicId","storyPoints","flowId","priority","status","statusChanged","parentId","containsChecklist","containsSubTasks","containsRelatedTasks","containsGanttLinks","containsPlacements","containsResults","numberOfReminders","chatId","plannedDuration","actualDuration","durationType","started","estimatedTime","replicate","changed","changedById","statusChangedById","closedById","closed","activity","guid","xmlId","exchangeId","exchangeModified","outlookVersion","mark","allowsChangeDeadline","allowsTimeTracking","matchesWorkTime","addInReport","isMultitask","siteId","forkedByTemplateId","deadlineCount","declineReason","forumTopicId","link","rights","archiveLink","crmItemIds","crmItems","reminders","elapsedTime","requireResult","matchesSubTasksTime","autocompleteSubTasks","allowsChangeDatePlan","emailId","maxDeadlineChangeDate","maxDeadlineChanges","requireDeadlineChangeReason","inFavorite","inPin","inGroupPin","inMute","source","dependsOn","scenarios"]}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.tasks.taskdto"}}}}}}}}}}},"\/tasks.task.list":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","title","description","creatorId","created","responsibleId","deadline","needsControl","startPlan","endPlan","fileIds","checklist","groupId","stageId","epicId","storyPoints","flowId","priority","status","statusChanged","parentId","containsChecklist","containsSubTasks","containsRelatedTasks","containsGanttLinks","containsPlacements","containsResults","numberOfReminders","chatId","plannedDuration","actualDuration","durationType","started","estimatedTime","replicate","changed","changedById","statusChangedById","closedById","closed","activity","guid","xmlId","exchangeId","exchangeModified","outlookVersion","mark","allowsChangeDeadline","allowsTimeTracking","matchesWorkTime","addInReport","isMultitask","siteId","forkedByTemplateId","deadlineCount","declineReason","forumTopicId","link","rights","archiveLink","crmItemIds","crmItems","reminders","elapsedTime","requireResult","matchesSubTasksTime","autocompleteSubTasks","allowsChangeDatePlan","emailId","maxDeadlineChangeDate","maxDeadlineChanges","requireDeadlineChangeReason","inFavorite","inPin","inGroupPin","inMute","source","dependsOn","scenarios"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object","properties":{"id":{"type":"string","example":"ASC"},"title":{"type":"string","example":"ASC"},"creatorId":{"type":"string","example":"ASC"},"created":{"type":"string","example":"ASC"},"responsibleId":{"type":"string","example":"ASC"},"deadline":{"type":"string","example":"ASC"},"startPlan":{"type":"string","example":"ASC"},"endPlan":{"type":"string","example":"ASC"},"groupId":{"type":"string","example":"ASC"},"priority":{"type":"string","example":"ASC"},"status":{"type":"string","example":"ASC"},"started":{"type":"string","example":"ASC"},"estimatedTime":{"type":"string","example":"ASC"},"changed":{"type":"string","example":"ASC"},"closed":{"type":"string","example":"ASC"},"activity":{"type":"string","example":"ASC"},"mark":{"type":"string","example":"ASC"},"allowsChangeDeadline":{"type":"string","example":"ASC"},"allowsTimeTracking":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.tasks.taskdto"}}}}}}}}}},"\/tasks.task.access.get":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/tasks.task.file.attach":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"taskId":{"type":"integer","example":1},"fileIds":{"type":"array"}},"required":["taskId","fileIds"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/tasks.task.chat.message.send":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","properties":{"taskId":{"type":"integer","format":"int64"},"text":{"type":"string"}},"required":["taskId","text"]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/tasks.task.result.add":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","properties":{"taskId":{"type":"integer","format":"int64"},"text":{"type":"string"}},"required":["taskId","text"]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.tasks.resultdto"}}}}}}}}}}},"\/tasks.task.result.addfromchatmessage":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","properties":{"text":{"type":"string"},"messageId":{"type":"integer","format":"int64"}},"required":["messageId"]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.tasks.resultdto"}}}}}}}}}}},"\/tasks.task.result.update":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"fields":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.tasks.resultdto"}}}}}}}}}}},"\/tasks.task.result.delete":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/tasks.task.result.list":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"select":{"type":"array","items":{"type":"string"},"example":["id","taskId","text","authorId","createdAt","updatedAt","status","fileIds","rights","messageId"]},"order":{"type":"object","properties":{"id":{"type":"string","example":"ASC"},"authorId":{"type":"string","example":"ASC"},"createdAt":{"type":"string","example":"ASC"},"updatedAt":{"type":"string","example":"ASC"},"status":{"type":"string","example":"ASC"},"messageId":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.tasks.resultdto"}}}}}}}}}},"\/timeman.record.list":{"post":{"tags":["timeman"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"select":{"type":"array","items":{"type":"string"},"example":["id","userId","startTime","endTime","duration","breakLength","state","isApproved"]},"order":{"type":"object","properties":{"id":{"type":"string","example":"ASC"},"userId":{"type":"string","example":"ASC"},"startTime":{"type":"string","example":"ASC"},"endTime":{"type":"string","example":"ASC"},"duration":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.timeman.recorddto"}}}}}}}}}},"\/vibecodeconnector.catalog.item.add":{"post":{"description":"Creates a catalog item owned by the current REST user","tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"title":{"type":"string","example":"string"},"type":{"type":"string","example":"string"},"accessType":{"type":"string","example":"string"},"description":{"type":"string","example":"string"},"editUrl":{"type":"string","example":"string"},"viewUrl":{"type":"string","example":"string"},"iconUrl":{"type":"string","example":"string"},"chatId":{"type":"integer","example":1},"externalId":{"type":"string","example":"string"},"iss":{"type":"string","example":"string"}},"required":["title","type","accessType"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"id":{"type":"integer","format":"int64"}}}}}}}}}}},"\/vibecodeconnector.catalog.item.update":{"post":{"description":"Updates editable fields of a catalog item owned by the current REST user","tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"catalogItemId":{"type":"integer","example":1},"fields":{"type":"object","properties":{"title":{"type":"string"},"accessType":{"type":"string"},"description":{"type":"string"},"editUrl":{"type":"string"},"viewUrl":{"type":"string"},"iconUrl":{"type":"string"},"chatId":{"type":"integer","format":"int64"},"externalId":{"type":"string"}}}},"required":["catalogItemId","fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/vibecodeconnector.catalog.item.delete":{"post":{"description":"Deletes a catalog item owned by the current REST user","tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"catalogItemId":{"type":"integer","example":1}},"required":["catalogItemId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/vibecodeconnector.catalog.item.access.set":{"post":{"description":"Replaces all ACL access codes for a catalog item owned by the current REST user","tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"catalogItemId":{"type":"integer","example":1},"accessCodes":{"type":"array"}},"required":["catalogItemId","accessCodes"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/vibecodeconnector.catalog.item.pin.set":{"post":{"description":"Pins a catalog item for the current REST user","tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"catalogItemId":{"type":"integer","example":1}},"required":["catalogItemId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/vibecodeconnector.catalog.item.pin.delete":{"post":{"description":"Removes the current REST user pin from a catalog item","tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"catalogItemId":{"type":"integer","example":1}},"required":["catalogItemId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/batch":{"post":{"tags":[],"requestBody":{"content":{"application\/json":{"schema":{"type":"object"}}}},"responses":[],"summary":"Batch call","description":"Executes a batch call of multiple methods inside a single request."}},"\/documentation":{"post":{"summary":"Open API Documentation","description":"Retrieves documentation in Open API format.","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"summary":"Open API Documentation","description":"Retrieves documentation in Open API format.","tags":["rest"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/scopes":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"filterModule":{"type":"string","example":"string"},"filterController":{"type":"string","example":"string"},"filterMethod":{"type":"string","example":"string"}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}}},"components":{"schemas":{"bitrix.call.followupdto":{"type":"object","properties":{"callId":{"type":"integer","format":"int64","title":"callId","description":"Bitrix24 call identifier (b_call.ID). Always present."},"callType":{"type":"integer","format":"int64","title":"callType","description":"Call type: 1 = instant ad-hoc, 2 = permanent conference room, 3 = large room."},"initiatorId":{"type":"integer","format":"int64","title":"initiatorId","description":"User id of who initiated the call."},"startDate":{"type":"string","title":"startDate","description":"ISO 8601 UTC timestamp when the call started."},"endDate":{"type":"string","title":"endDate","description":"ISO 8601 UTC timestamp when the call ended. Null while the call is still in progress."},"durationSeconds":{"type":"integer","format":"int64","title":"durationSeconds","description":"Total call duration in seconds (endDate − startDate)."},"uuid":{"type":"string","title":"uuid","description":"Opaque UUID of the call session. Opt-in: list this in `select` to receive it."},"language":{"type":"string","title":"language","description":"Detected transcription language (BCP-47 \/ ISO 639-1, e.g. \u0022ru\u0022, \u0022en\u0022). Null when there is no transcription."},"version":{"type":"integer","format":"int64","title":"version","description":"Maximum schema version across all stored outcome blocks (transcription, overview, summary, insights, evaluation)."},"participants":{"type":"array","title":"participants","description":"Call participants, enriched with display data from Util::getUsers (name, avatar, work position). Opt-in via `select`."},"outcomes":{"type":"array","title":"outcomes","description":"Names of outcome blocks present for this call: any subset of [transcription, overview, summary, insights, evaluation]."},"createdAt":{"type":"string","title":"createdAt","description":"ISO 8601 UTC timestamp of the most recently stored outcome record for this call."},"tracks":{"type":"array","title":"tracks","description":"Call recordings \/ tracks with download URLs. Opt-in via `select`."},"transcription":{"$ref":"#\/components\/schemas\/bitrix.call.transcriptiondto","title":"transcription","description":"Time-ordered transcription of the call with per-segment speaker attribution."},"overview":{"$ref":"#\/components\/schemas\/bitrix.call.overviewdto","title":"overview","description":"AI overview of the meeting: topic, agenda, agreements, action items, takeaways."},"summary":{"$ref":"#\/components\/schemas\/bitrix.call.summarydto","title":"summary","description":"Segmented summary of the call by topic chunks."},"insights":{"$ref":"#\/components\/schemas\/bitrix.call.insightsdto","title":"insights","description":"AI insights: per-speaker analysis (CIS only), meeting strengths\/weaknesses, recommendations."},"evaluation":{"$ref":"#\/components\/schemas\/bitrix.call.evaluationdto","title":"evaluation","description":"Meeting efficiency evaluation: overall score and individual evaluation criteria."}}},"bitrix.call.transcriptiondto":{"type":"object","properties":{"language":{"type":"string","title":"language","description":"Detected transcription language as BCP-47 \/ ISO 639-1 code (e.g. \u0022ru\u0022, \u0022en\u0022). Null when the language could not be determined."},"segments":{"type":"array","title":"segments","description":"Time-ordered transcription segments. Each segment is one continuous utterance by a single speaker."}}},"bitrix.call.overviewdto":{"type":"object","properties":{"topic":{"type":"string","title":"topic","description":"AI-detected meeting topic in one short phrase."},"detailedTakeaways":{"type":"string","title":"detailedTakeaways","description":"Long-form summary of meeting outcomes (multiple sentences). @-mentions are rendered in the selected mentionFormat."},"meetingType":{"type":"array","title":"meetingType","description":"Meeting type. Shape: { explanation: string, typeTag: string (raw AI tag, e.g. \u0022planning\u0022), title: string (localized) }."},"agenda":{"type":"array","title":"agenda","description":"Agenda detection. Shape: { explanation: string (was an agenda announced and how it was set), quote: string (verbatim agenda quote from transcription) }."},"agreements":{"type":"array","title":"agreements","description":"List of explicit agreements. Each item: { agreement: string (AI-rephrased agreement, may contain @-mentions in selected mentionFormat), quote?: string (supporting transcription excerpt) }."},"actionItems":{"type":"array","title":"actionItems","description":"Action items. Each item: { actionItem: string (with @-mentions), actionItemMentionLess?: string (same text without markup), quote?: string }."},"meetings":{"type":"array","title":"meetings","description":"Planned follow-up meetings. Each item: { meeting: string (with @-mentions), meetingMentionLess?: string, quote?: string }."}}},"bitrix.call.summarydto":{"type":"object","properties":{"segments":{"type":"array","title":"segments","description":"Time-ordered segments of the meeting summary. Each segment covers a continuous topical chunk of the call."}}},"bitrix.call.insightsdto":{"type":"object","properties":{"speakerEvaluationAvailable":{"type":"boolean","title":"speakerEvaluationAvailable","description":"Whether per-speaker evaluation is available on this portal. False for non-CIS regions; speakerAnalysis is empty in that case."},"speakerAnalysis":{"type":"array","title":"speakerAnalysis","description":"Per-speaker analysis, sorted by talkPercentage DESC, efficiencyValue DESC. Each item: { userId, detailedInsight, efficiencyValue (0..100), evaluationCriteria (map of criterion-\u003E{value,criteria,title}), talkPercentage, duration (seconds), durationFormat (localized human label) }."},"meetingStrengths":{"type":"array","title":"meetingStrengths","description":"Meeting strengths. Each item: { strengthTitle: string (short label), strengthExplanation: string (detailed reasoning) }."},"meetingWeaknesses":{"type":"array","title":"meetingWeaknesses","description":"Meeting weaknesses. Each item: { weaknessTitle: string, weaknessExplanation: string }."},"speechStyleInfluence":{"type":"string","title":"speechStyleInfluence","description":"AI commentary on how speakers\u0027 communication style affected the meeting outcome."},"engagementLevel":{"type":"string","title":"engagementLevel","description":"Free-form AI assessment of overall meeting engagement."},"areasOfResponsibility":{"type":"string","title":"areasOfResponsibility","description":"AI-detected delegated areas of responsibility and ownership coming out of the meeting."},"finalRecommendations":{"type":"string","title":"finalRecommendations","description":"Final AI recommendations for future meetings of this team or topic."}}},"bitrix.call.evaluationdto":{"type":"object","properties":{"efficiencyValue":{"type":"integer","format":"int64","title":"efficiencyValue","description":"Overall meeting efficiency score in the range 0..100. Computed as the share of passed criteria, including the calendar overhead penalty."},"calendar":{"type":"array","title":"calendar","description":"Calendar booking quality. Shape: { overhead: bool } — whether the meeting ran past its scheduled end time."},"criteria":{"type":"array","title":"criteria","description":"Meeting evaluation criteria map. Keys are AI-driven criterion codes (e.g. agenda_clearly_stated). Each value has shape { value: bool (passed\/failed), criteria: string (raw code, mirrors the key), thoughts: string (AI commentary in selected mentionFormat), title: string (localized) }."}}},"bitrix.humanresources.employeedto":{"type":"object","properties":{"userId":{"type":"integer","format":"int64","title":"userId"},"name":{"type":"string","title":"name"},"workPosition":{"type":"string","title":"workPosition"},"avatar":{"type":"string","title":"avatar"},"url":{"type":"string","title":"url"},"departments":{"type":"array","title":"departments"},"teams":{"type":"array","title":"teams"}}},"bitrix.humanresources.nodedto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"name":{"type":"string","title":"name"},"type":{"type":"string","title":"type"},"structureId":{"type":"integer","format":"int64","title":"structureId"},"parentId":{"type":"integer","format":"int64","title":"parentId"},"description":{"type":"string","title":"description"},"accessCode":{"type":"string","title":"accessCode"},"userCount":{"type":"integer","format":"int64","title":"userCount"},"colorName":{"type":"string","title":"colorName"},"xmlId":{"type":"string","title":"xmlId"},"createdAt":{"type":"string","title":"createdAt"},"updatedAt":{"type":"string","title":"updatedAt"},"members":{"type":"array","title":"members"}}},"bitrix.humanresources.nodememberdto":{"type":"object","properties":{"userId":{"type":"integer","format":"int64","title":"userId"},"name":{"type":"string","title":"name"},"workPosition":{"type":"string","title":"workPosition"},"role":{"type":"string","title":"role"},"avatar":{"type":"string","title":"avatar"},"url":{"type":"string","title":"url"}}},"bitrix.mail.mailboxdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"name":{"type":"string","title":"name"},"email":{"type":"string","title":"email"},"senderName":{"type":"string","title":"senderName"}}},"bitrix.mail.messagedto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"mailboxId":{"type":"integer","format":"int64","title":"mailboxId"},"mailboxEmail":{"type":"string","title":"mailboxEmail"},"subject":{"type":"string","title":"subject"},"from":{"type":"string","title":"from"},"to":{"type":"string","title":"to"},"cc":{"type":"string","title":"cc"},"date":{"type":"string","title":"date"},"isSeen":{"type":"boolean","title":"isSeen"},"hasAttachments":{"type":"boolean","title":"hasAttachments"},"url":{"type":"string","title":"url"},"bindings":{"type":"array","title":"bindings"},"body":{"type":"string","title":"body"}}},"bitrix.mail.recipientdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"email":{"type":"string","title":"email"},"name":{"type":"string","title":"name"}}},"bitrix.main.eventlogdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"Record ID","description":"Unique event log entry ID."},"timestampX":{"type":"string","format":"date-time","title":"Event time","description":"Event date and time."},"severity":{"type":"string","title":"Severity","description":"Event severity level (INFO, WARNING, ERROR, etc.)"},"auditTypeId":{"type":"string","title":"Event type","description":"Audit event type ID."},"moduleId":{"type":"string","title":"Module","description":"The module that produced the event."},"itemId":{"type":"string","title":"Item ID","description":"The ID of an item associated with the event."},"remoteAddr":{"type":"string","title":"IP address","description":"The IP address of a user associated with the event."},"userAgent":{"type":"string","title":"User Agent","description":"The User Agent string: the user\u0027s browser and OS."},"requestUri":{"type":"string","title":"Request URL","description":"The URL that was used to initiate the request."},"siteId":{"type":"string","title":"Site ID","description":"The ID of a site associated with the event."},"userId":{"type":"integer","format":"int64","title":"User ID","description":"The ID of a user associated with the event."},"guestId":{"type":"integer","format":"int64","title":"Guest ID","description":"The ID of a guest (i.e. a user who didn\u0027t log in)."},"description":{"type":"string","title":"Event description","description":"Detailed event description."}}},"bitrix.note.collectionitemdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"name":{"type":"string","title":"name"},"position":{"type":"integer","format":"int64","title":"position"},"policyLevel":{"type":"string","title":"policyLevel"},"createdBy":{"type":"integer","format":"int64","title":"createdBy"},"createdAt":{"type":"string","title":"createdAt"},"updatedBy":{"type":"integer","format":"int64","title":"updatedBy"},"updatedAt":{"type":"string","title":"updatedAt"}}},"bitrix.note.documentitemdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"collectionId":{"type":"integer","format":"int64","title":"collectionId"},"parentId":{"type":"integer","format":"int64","title":"parentId"},"title":{"type":"string","title":"title"},"markdown":{"type":"string","title":"markdown"},"position":{"type":"integer","format":"int64","title":"position"},"createdBy":{"type":"integer","format":"int64","title":"createdBy"},"updatedBy":{"type":"integer","format":"int64","title":"updatedBy"},"createdAt":{"type":"string","title":"createdAt"},"updatedAt":{"type":"string","title":"updatedAt"}}},"bitrix.note.documenttreeitemdto":{"type":"object","properties":{"id":{"type":"integer"},"collectionId":{"type":"integer"},"parentId":{"type":"integer","nullable":true},"title":{"type":"string"},"position":{"type":"integer"},"children":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.note.documenttreeitemdto"}}}},"bitrix.note.searchresultitemdto":{"type":"object","properties":{"documentId":{"type":"integer","format":"int64","title":"documentId"},"collectionId":{"type":"integer","format":"int64","title":"collectionId"},"title":{"type":"string","title":"title"},"score":{"type":"float","title":"score"},"snippet":{"type":"string","title":"snippet"},"sharedAccess":{"type":"boolean","title":"sharedAccess"}}},"bitrix.note.fileitemdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"documentId":{"type":"integer","format":"int64","title":"documentId"},"name":{"type":"string","title":"name"},"size":{"type":"integer","format":"int64","title":"size"},"mimeType":{"type":"string","title":"mimeType"},"assetType":{"type":"string","title":"assetType"},"assetMarkdown":{"type":"string","title":"assetMarkdown"}}},"bitrix.rest.dtofielddto":{"type":"object","properties":{"name":{"type":"string","title":"name"},"type":{"type":"string","title":"type"},"title":{"type":"string","title":"title"},"description":{"type":"string","title":"description"},"validationRules":{"type":"array","title":"validationRules"},"requiredGroups":{"type":"array","title":"requiredGroups"},"filterable":{"type":"boolean","title":"filterable"},"sortable":{"type":"boolean","title":"sortable"},"editable":{"type":"boolean","title":"editable"},"multiple":{"type":"boolean","title":"multiple"},"elementType":{"type":"string","title":"elementType"}}},"bitrix.rest.customdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"entityId":{"type":"string","title":"entityId"},"name":{"type":"string","title":"name"},"userTypeId":{"type":"string","title":"userTypeId"},"xmlId":{"type":"string","title":"xmlId"},"sort":{"type":"integer","format":"int64","title":"sort"},"isMultiple":{"type":"boolean","title":"isMultiple"},"isMandatory":{"type":"boolean","title":"isMandatory"},"showFilter":{"type":"string","title":"showFilter"},"showInList":{"type":"boolean","title":"showInList"},"editInList":{"type":"boolean","title":"editInList"},"isSearchable":{"type":"boolean","title":"isSearchable"},"settings":{"type":"array","title":"settings"},"editFormLabel":{"title":"editFormLabel"},"listColumnLabel":{"title":"listColumnLabel"},"listFilterLabel":{"title":"listFilterLabel"},"errorMessage":{"title":"errorMessage"},"helpMessage":{"title":"helpMessage"}}},"bitrix.rest.enumdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"entityId":{"type":"string","title":"entityId"},"fieldId":{"type":"integer","format":"int64","title":"fieldId"},"value":{"type":"string","title":"value"},"isDefault":{"type":"boolean","title":"isDefault"},"sort":{"type":"integer","format":"int64","title":"sort"},"xmlId":{"type":"string","title":"xmlId"}}},"bitrix.rest.scoperequestdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"appId":{"type":"integer","format":"int64","title":"appId"},"scopes":{"type":"array","title":"scopes"},"status":{"type":"string","title":"status"},"currentState":{"$ref":"#\/components\/schemas\/bitrix.rest.scoperequeststatusdto","title":"currentState"},"comment":{"type":"string","title":"comment"},"createdAt":{"type":"string","format":"date-time","title":"createdAt"},"history":{"title":"history"}}},"bitrix.rest.scoperequeststatusdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"requestId":{"type":"integer","format":"int64","title":"requestId"},"status":{"type":"string","title":"status"},"comment":{"type":"string","title":"comment"},"createdAt":{"type":"string","format":"date-time","title":"createdAt"}}},"bitrix.rest.appdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"Application inner identification"},"clientId":{"type":"string","title":"Application client ID"},"clientSecret":{"type":"string","title":"Application client secret"},"applicationToken":{"type":"string","title":"Application token (shared secret used to authenticate webhook callbacks from the portal)"},"scopes":{"type":"array","title":"Application scopes"},"title":{"type":"string","title":"Application title"},"url":{"type":"string","title":"Handler URL"},"urlInstall":{"type":"string","title":"Installation URL"},"urlSettings":{"type":"string","title":"Settings URL"},"mobile":{"type":"boolean","title":"Mobile application flag"},"version":{"type":"string","title":"Application version"},"active":{"type":"boolean","title":"Application active flag"},"installed":{"type":"boolean","title":"Application installed flag"},"dateCreate":{"type":"string","title":"Date of creation"},"dateInstall":{"type":"string","title":"Date of installation"},"attributes":{"type":"array","title":"Application external attributes"}}},"bitrix.rest.incomingwebhookdto":{"type":"object","properties":{"url":{"type":"string","title":"Webhook handler URL"},"scopes":{"type":"array","title":"Webhook scopes"},"title":{"type":"string","title":"Webhook title"},"active":{"type":"boolean","title":"Active flag"},"userId":{"type":"integer","format":"int64","title":"Owner user id"},"dateCreate":{"type":"string","title":"Date of creation"},"attributes":{"type":"array","title":"Incoming webhook external attributes"}}},"bitrix.rest.accessdto":{"type":"object","properties":{"clientId":{"type":"string","title":"Application client ID"},"codes":{"type":"array","title":"Application access codes"},"codesDetails":{"type":"array","title":"Access code details with provider and display name"}}},"bitrix.rest.embeddingdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"ID"},"userId":{"type":"integer","format":"int64","title":"User ID"},"placement":{"type":"string","title":"Placement name"},"handler":{"type":"string","title":"Placement Handler URI"},"title":{"type":"string","title":"title"},"description":{"type":"string","title":"description"},"groupName":{"type":"string","title":"groupName"},"additional":{"type":"string","title":"additional"},"options":{"type":"array","title":"options"},"languages":{"title":"languages"}}},"bitrix.rest.oauthtokendto":{"type":"object","properties":{"accessToken":{"type":"string","title":"OAuth access token"},"refreshToken":{"type":"string","title":"OAuth refresh token"},"expiresIn":{"type":"integer","format":"int64","title":"Access token lifetime in seconds"},"serverEndpoint":{"type":"string","title":"REST server endpoint"}}},"bitrix.rest.placementdto":{"type":"object","properties":{"placement":{"type":"string","title":"placement"}}},"bitrix.tasks.taskdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"title":{"type":"string","title":"title"},"description":{"type":"string","title":"description"},"creatorId":{"type":"integer","format":"int64","title":"creatorId"},"creator":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto","title":"creator"},"created":{"type":"string","format":"date-time","title":"created"},"responsibleId":{"type":"integer","format":"int64","title":"responsibleId"},"responsible":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto","title":"responsible"},"deadline":{"type":"string","format":"date-time","title":"deadline"},"needsControl":{"type":"boolean","title":"needsControl"},"startPlan":{"type":"string","format":"date-time","title":"startPlan"},"endPlan":{"type":"string","format":"date-time","title":"endPlan"},"fileIds":{"type":"array","title":"fileIds"},"checklist":{"type":"array","title":"checklist"},"groupId":{"type":"integer","format":"int64","title":"groupId"},"group":{"$ref":"#\/components\/schemas\/bitrix.tasks.groupdto","title":"group"},"stageId":{"type":"integer","format":"int64","title":"stageId"},"stage":{"$ref":"#\/components\/schemas\/bitrix.tasks.stagedto","title":"stage"},"epicId":{"type":"integer","format":"int64","title":"epicId"},"storyPoints":{"type":"integer","format":"int64","title":"storyPoints"},"flowId":{"type":"integer","format":"int64","title":"flowId"},"flow":{"$ref":"#\/components\/schemas\/bitrix.tasks.flowdto","title":"flow"},"priority":{"type":"string","title":"priority"},"status":{"type":"string","title":"status"},"statusChanged":{"type":"string","format":"date-time","title":"statusChanged"},"accomplices":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto"},"title":"accomplices"},"auditors":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto"},"title":"auditors"},"parentId":{"type":"integer","format":"int64","title":"parentId"},"parent":{"$ref":"#\/components\/schemas\/bitrix.tasks.taskdto","title":"parent"},"containsChecklist":{"type":"boolean","title":"containsChecklist"},"containsSubTasks":{"type":"boolean","title":"containsSubTasks"},"containsRelatedTasks":{"type":"boolean","title":"containsRelatedTasks"},"containsGanttLinks":{"type":"boolean","title":"containsGanttLinks"},"containsPlacements":{"type":"boolean","title":"containsPlacements"},"containsResults":{"type":"boolean","title":"containsResults"},"numberOfReminders":{"type":"integer","format":"int64","title":"numberOfReminders"},"chatId":{"type":"integer","format":"int64","title":"chatId"},"chat":{"$ref":"#\/components\/schemas\/bitrix.tasks.chatdto","title":"chat"},"plannedDuration":{"type":"integer","format":"int64","title":"plannedDuration"},"actualDuration":{"type":"integer","format":"int64","title":"actualDuration"},"durationType":{"type":"string","title":"durationType"},"started":{"type":"string","format":"date-time","title":"started"},"estimatedTime":{"type":"integer","format":"int64","title":"estimatedTime"},"replicate":{"type":"boolean","title":"replicate"},"changed":{"type":"string","format":"date-time","title":"changed"},"changedById":{"type":"integer","format":"int64","title":"changedById"},"changedBy":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto","title":"changedBy"},"statusChangedById":{"type":"integer","format":"int64","title":"statusChangedById"},"statusChangedBy":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto","title":"statusChangedBy"},"closedById":{"type":"integer","format":"int64","title":"closedById"},"closedBy":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto","title":"closedBy"},"closed":{"type":"string","format":"date-time","title":"closed"},"activity":{"type":"string","format":"date-time","title":"activity"},"guid":{"type":"string","title":"guid"},"xmlId":{"type":"string","title":"xmlId"},"exchangeId":{"type":"string","title":"exchangeId"},"exchangeModified":{"type":"string","title":"exchangeModified"},"outlookVersion":{"type":"integer","format":"int64","title":"outlookVersion"},"mark":{"type":"string","title":"mark"},"allowsChangeDeadline":{"type":"boolean","title":"allowsChangeDeadline"},"allowsTimeTracking":{"type":"boolean","title":"allowsTimeTracking"},"matchesWorkTime":{"type":"boolean","title":"matchesWorkTime"},"addInReport":{"type":"boolean","title":"addInReport"},"isMultitask":{"type":"boolean","title":"isMultitask"},"siteId":{"type":"string","title":"siteId"},"forkedByTemplateId":{"type":"integer","format":"int64","title":"forkedByTemplateId"},"forkedByTemplate":{"$ref":"#\/components\/schemas\/bitrix.tasks.templatedto","title":"forkedByTemplate"},"deadlineCount":{"type":"integer","format":"int64","title":"deadlineCount"},"declineReason":{"type":"string","title":"declineReason"},"forumTopicId":{"type":"integer","format":"int64","title":"forumTopicId"},"tags":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.tasks.tagdto"},"title":"tags"},"link":{"type":"string","title":"link"},"userFields":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.tasks.userfielddto"},"title":"userFields"},"rights":{"type":"array","title":"rights"},"archiveLink":{"type":"string","title":"archiveLink"},"crmItemIds":{"type":"array","title":"crmItemIds"},"crmItems":{"$ref":"#\/components\/schemas\/bitrix.tasks.crmitemdto","title":"crmItems"},"reminders":{"type":"array","title":"reminders"},"elapsedTime":{"$ref":"#\/components\/schemas\/bitrix.tasks.elapsedtimedto","title":"elapsedTime"},"requireResult":{"type":"boolean","title":"requireResult"},"matchesSubTasksTime":{"type":"boolean","title":"matchesSubTasksTime"},"autocompleteSubTasks":{"type":"boolean","title":"autocompleteSubTasks"},"allowsChangeDatePlan":{"type":"boolean","title":"allowsChangeDatePlan"},"emailId":{"type":"integer","format":"int64","title":"emailId"},"email":{"$ref":"#\/components\/schemas\/bitrix.tasks.emaildto","title":"email"},"maxDeadlineChangeDate":{"type":"string","format":"date-time","title":"maxDeadlineChangeDate"},"maxDeadlineChanges":{"type":"integer","format":"int64","title":"maxDeadlineChanges"},"requireDeadlineChangeReason":{"type":"boolean","title":"requireDeadlineChangeReason"},"inFavorite":{"type":"array","title":"inFavorite"},"inPin":{"type":"array","title":"inPin"},"inGroupPin":{"type":"array","title":"inGroupPin"},"inMute":{"type":"array","title":"inMute"},"source":{"$ref":"#\/components\/schemas\/bitrix.tasks.sourcedto","title":"source"},"dependsOn":{"type":"array","title":"dependsOn"},"scenarios":{"type":"array","title":"scenarios"}}},"bitrix.tasks.userdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"name":{"type":"string","title":"name"},"role":{"type":"string","title":"role"},"image":{"$ref":"#\/components\/schemas\/bitrix.tasks.filedto","title":"image"},"gender":{"type":"string","title":"gender"},"email":{"type":"string","title":"email"},"externalAuthId":{"type":"string","title":"externalAuthId"},"rights":{"type":"array","title":"rights"}}},"bitrix.tasks.filedto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"src":{"type":"string","title":"src"},"name":{"type":"string","title":"name"},"width":{"type":"integer","format":"int64","title":"width"},"height":{"type":"integer","format":"int64","title":"height"},"size":{"type":"integer","format":"int64","title":"size"},"subDir":{"type":"string","title":"subDir"},"contentType":{"type":"string","title":"contentType"},"file":{"type":"array","title":"file"}}},"bitrix.tasks.groupdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"name":{"type":"string","title":"name"},"image":{"$ref":"#\/components\/schemas\/bitrix.tasks.filedto","title":"image"},"type":{"type":"string","title":"type"},"isVisible":{"type":"boolean","title":"isVisible"}}},"bitrix.tasks.stagedto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"title":{"type":"string","title":"title"},"color":{"type":"string","title":"color"}}},"bitrix.tasks.flowdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"name":{"type":"string","title":"name"}}},"bitrix.tasks.chatdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"entityId":{"type":"integer","format":"int64","title":"entityId"},"entityType":{"type":"string","title":"entityType"}}},"bitrix.tasks.templatedto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"task":{"$ref":"#\/components\/schemas\/bitrix.tasks.taskdto","title":"task"},"title":{"type":"string","title":"title"},"description":{"type":"string","title":"description"},"creator":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto","title":"creator"},"responsibleCollection":{"type":"array","title":"responsibleCollection"},"deadlineAfterTs":{"type":"integer","format":"int64","title":"deadlineAfterTs"},"startDatePlanTs":{"type":"integer","format":"int64","title":"startDatePlanTs"},"endDatePlanTs":{"type":"integer","format":"int64","title":"endDatePlanTs"},"replicate":{"type":"boolean","title":"replicate"},"fileIds":{"type":"array","title":"fileIds"},"checklist":{"type":"array","title":"checklist"},"group":{"$ref":"#\/components\/schemas\/bitrix.tasks.groupdto","title":"group"},"priority":{"type":"string","title":"priority"},"accomplices":{"type":"array","title":"accomplices"},"auditors":{"type":"array","title":"auditors"},"parent":{"$ref":"#\/components\/schemas\/bitrix.tasks.templatedto","title":"parent"},"replicateParams":{"$ref":"#\/components\/schemas\/bitrix.tasks.replicateparamsdto","title":"replicateParams"}}},"bitrix.tasks.replicateparamsdto":{"type":"object","properties":{"period":{"type":"string","title":"period"},"everyDay":{"type":"string","title":"everyDay"},"workdayOnly":{"type":"string","title":"workdayOnly"},"dailyMonthInterval":{"type":"string","title":"dailyMonthInterval"},"everyWeek":{"type":"string","title":"everyWeek"},"monthlyType":{"type":"string","title":"monthlyType"},"monthlyDayNum":{"type":"string","title":"monthlyDayNum"},"monthlyMonthNum1":{"type":"string","title":"monthlyMonthNum1"},"monthlyWeekDayNum":{"type":"string","title":"monthlyWeekDayNum"},"monthlyWeekDay":{"type":"string","title":"monthlyWeekDay"},"monthlyMonthNum2":{"type":"string","title":"monthlyMonthNum2"},"yearlyType":{"type":"string","title":"yearlyType"},"yearlyDayNum":{"type":"string","title":"yearlyDayNum"},"yearlyMonth1":{"type":"string","title":"yearlyMonth1"},"yearlyWeekDayNum":{"type":"string","title":"yearlyWeekDayNum"},"yearlyWeekDay":{"type":"string","title":"yearlyWeekDay"},"yearlyMonth2":{"type":"string","title":"yearlyMonth2"},"time":{"type":"string","title":"time"},"timezoneOffset":{"type":"string","title":"timezoneOffset"},"startDate":{"type":"string","title":"startDate"},"repeatTill":{"type":"string","title":"repeatTill"},"endDate":{"type":"string","title":"endDate"},"times":{"type":"string","title":"times"}}},"bitrix.tasks.tagdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"name":{"type":"string","title":"name"},"ownerId":{"type":"integer","format":"int64","title":"ownerId"},"owner":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto","title":"owner"},"groupId":{"type":"integer","format":"int64","title":"groupId"},"group":{"$ref":"#\/components\/schemas\/bitrix.tasks.groupdto","title":"group"},"taskId":{"type":"integer","format":"int64","title":"taskId"},"task":{"$ref":"#\/components\/schemas\/bitrix.tasks.taskdto","title":"task"}}},"bitrix.tasks.userfielddto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"key":{"type":"string","title":"key"},"value":{"title":"value"}}},"bitrix.tasks.crmitemdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"type":{"type":"string","title":"type"},"title":{"type":"string","title":"title"}}},"bitrix.tasks.elapsedtimedto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"userId":{"type":"integer","format":"int64","title":"userId"},"taskId":{"type":"integer","format":"int64","title":"taskId"},"minutes":{"type":"integer","format":"int64","title":"minutes"},"seconds":{"type":"integer","format":"int64","title":"seconds"},"source":{"type":"string","title":"source"},"text":{"type":"string","title":"text"},"createdAtTs":{"type":"integer","format":"int64","title":"createdAtTs"},"startTs":{"type":"integer","format":"int64","title":"startTs"},"stopTs":{"type":"integer","format":"int64","title":"stopTs"}}},"bitrix.tasks.emaildto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"taskId":{"type":"integer","format":"int64","title":"taskId"},"mailboxId":{"type":"integer","format":"int64","title":"mailboxId"},"title":{"type":"string","title":"title"},"body":{"type":"string","title":"body"},"from":{"type":"string","title":"from"},"dateTs":{"type":"integer","format":"int64","title":"dateTs"},"link":{"type":"string","title":"link"}}},"bitrix.tasks.sourcedto":{"type":"object","properties":{"type":{"type":"string","title":"type"},"data":{"type":"array","title":"data"}}},"bitrix.tasks.messagedto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"taskId":{"type":"integer","format":"int64","title":"taskId"},"text":{"type":"string","title":"text"}}},"bitrix.tasks.resultdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"taskId":{"type":"integer","format":"int64","title":"taskId"},"text":{"type":"string","title":"text"},"authorId":{"type":"integer","format":"int64","title":"authorId"},"author":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto","title":"author"},"createdAt":{"type":"string","format":"date-time","title":"createdAt"},"updatedAt":{"type":"string","format":"date-time","title":"updatedAt"},"status":{"type":"string","title":"status"},"fileIds":{"type":"array","title":"fileIds"},"rights":{"type":"array","title":"rights"},"messageId":{"type":"integer","format":"int64","title":"messageId"}}},"bitrix.timeman.recorddto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"userId":{"type":"integer","format":"int64","title":"userId"},"startTime":{"type":"string","format":"date-time","title":"startTime"},"endTime":{"type":"string","format":"date-time","title":"endTime"},"duration":{"type":"integer","format":"int64","title":"duration"},"breakLength":{"type":"integer","format":"int64","title":"breakLength"},"state":{"$ref":"#\/components\/schemas\/bitrix.timeman.recordstatedto","title":"state"},"isApproved":{"type":"boolean","title":"isApproved"}}},"bitrix.timeman.recordstatedto":{"type":"object","properties":{"status":{"type":"string","title":"status"},"recommendedCloseTime":{"type":"integer","format":"int64","title":"recommendedCloseTime"}}},"bitrix.vibecodeconnector.catalogitemdto":{"type":"object","properties":{"catalogItemId":{"type":"integer","format":"int64","title":"Catalog item identifier"},"title":{"type":"string","title":"Title"},"type":{"type":"string","title":"Item type"},"accessType":{"type":"string","title":"Access type"},"description":{"type":"string","title":"Description"},"editUrl":{"type":"string","title":"Edit URL"},"viewUrl":{"type":"string","title":"View URL"},"iconUrl":{"type":"string","title":"Icon URL"},"chatId":{"type":"integer","format":"int64","title":"Chat identifier"},"externalId":{"type":"string","title":"External identifier"},"ownerId":{"type":"integer","format":"int64","title":"Owner user identifier"},"color":{"type":"string","title":"Color"},"createdAt":{"type":"string","title":"Date of creation (ISO-8601)"},"updatedAt":{"type":"string","title":"Date of last update (ISO-8601)"}}},"bitrix.vibecodeconnector.accessdto":{"type":"object","properties":{"catalogItemId":{"type":"integer","format":"int64","title":"Catalog item identifier"},"accessCodes":{"type":"array","title":"Catalog item access codes"}}}}}} \ No newline at end of file +{"openapi":"3.0.0","info":{"title":"Bitrix24 REST V3 API","version":"1.0.0"},"servers":[],"tags":[{"name":"call","description":"call module methods"},{"name":"crm","description":"crm module methods"},{"name":"humanresources","description":"humanresources module methods"},{"name":"mail","description":"mail module methods"},{"name":"main","description":"main module methods"},{"name":"note","description":"note module methods"},{"name":"rest","description":"rest module methods"},{"name":"tasks","description":"tasks module methods"},{"name":"timeman","description":"timeman module methods"},{"name":"vibecodeconnector","description":"vibecodeconnector module methods"}],"paths":{"\/call.followup.get":{"post":{"tags":["call"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"callId":{"type":"integer","example":1},"select":{"type":"array","items":{"type":"string"},"example":["callId","callType","initiatorId","startDate","endDate","durationSeconds","uuid","language","version","participants","outcomes","createdAt","tracks","transcription","overview","summary","insights","evaluation"]},"mentionFormat":{"type":"string","example":"string"}},"required":["callId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/call.followup.list":{"post":{"tags":["call"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["callId","callType","initiatorId","startDate","endDate","durationSeconds","uuid","language","version","participants","outcomes","createdAt","tracks","transcription","overview","summary","insights","evaluation"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object"},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}},"mentionFormat":{"type":"string","example":"string"}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/crm.activity.mail.getContent":{"post":{"tags":["crm"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"activityId":{"type":"integer","example":1}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/crm.activity.mail.getThread":{"post":{"tags":["crm"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"activityId":{"type":"integer","example":1}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/crm.activity.mail.reply":{"post":{"tags":["crm"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"activityId":{"type":"integer","example":1},"body":{"type":"string","example":"string"},"cc":{"type":"array"},"bcc":{"type":"array"},"from":{"type":"string","example":"string"}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/crm.deal.timeline.activity.email.list":{"post":{"tags":["crm"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"isIncoming":{"type":"boolean","example":true},"limit":{"type":"integer","example":1},"offset":{"type":"integer","example":1}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/crm.deal.timeline.activity.email.send":{"post":{"tags":["crm"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"to":{"type":"array"},"cc":{"type":"array"},"bcc":{"type":"array"},"subject":{"type":"string","example":"string"},"body":{"type":"string","example":"string"},"from":{"type":"string","example":"string"}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/crm.lead.timeline.activity.email.list":{"post":{"tags":["crm"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"isIncoming":{"type":"boolean","example":true},"limit":{"type":"integer","example":1},"offset":{"type":"integer","example":1}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/crm.lead.timeline.activity.email.send":{"post":{"tags":["crm"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"to":{"type":"array"},"cc":{"type":"array"},"bcc":{"type":"array"},"subject":{"type":"string","example":"string"},"body":{"type":"string","example":"string"},"from":{"type":"string","example":"string"}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/crm.contact.timeline.activity.email.list":{"post":{"tags":["crm"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"isIncoming":{"type":"boolean","example":true},"limit":{"type":"integer","example":1},"offset":{"type":"integer","example":1}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/crm.contact.timeline.activity.email.send":{"post":{"tags":["crm"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"to":{"type":"array"},"cc":{"type":"array"},"bcc":{"type":"array"},"subject":{"type":"string","example":"string"},"body":{"type":"string","example":"string"},"from":{"type":"string","example":"string"}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/crm.company.timeline.activity.email.list":{"post":{"tags":["crm"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"isIncoming":{"type":"boolean","example":true},"limit":{"type":"integer","example":1},"offset":{"type":"integer","example":1}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/crm.company.timeline.activity.email.send":{"post":{"tags":["crm"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"to":{"type":"array"},"cc":{"type":"array"},"bcc":{"type":"array"},"subject":{"type":"string","example":"string"},"body":{"type":"string","example":"string"},"from":{"type":"string","example":"string"}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.employee.search":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["userId","name","workPosition","avatar","url","departments","teams"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object"},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.humanresources.employeedto"}}}}}}}}}},"\/humanresources.employee.subordinates":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["userId","name","workPosition","avatar","url","departments","teams"]},"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.employee.count":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.employee.multidepartment":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.get":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","name","type","structureId","parentId","description","accessCode","userCount","colorName","xmlId","createdAt","updatedAt","members"]},"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.humanresources.nodedto"}}}}}}}}}}},"\/humanresources.node.list":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","name","type","structureId","parentId","description","accessCode","userCount","colorName","xmlId","createdAt","updatedAt","members"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object","properties":{"id":{"type":"string","example":"ASC"},"name":{"type":"string","example":"ASC"},"createdAt":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.humanresources.nodedto"}}}}}}}}}},"\/humanresources.node.search":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","name","type","structureId","parentId","description","accessCode","userCount","colorName","xmlId","createdAt","updatedAt","members"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object","properties":{"id":{"type":"string","example":"ASC"},"name":{"type":"string","example":"ASC"},"createdAt":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.humanresources.nodedto"}}}}}}}}}},"\/humanresources.node.count":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.children":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","name","type","structureId","parentId","description","accessCode","userCount","colorName","xmlId","createdAt","updatedAt","members"]},"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.humanresources.nodedto"}}}}}}}}}},"\/humanresources.node.add":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.edit":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.move":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.communication.list":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.communication.edit":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.member.move":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.member.remove":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.member.add":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/humanresources.node.member.set":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["humanresources"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.mailbox.get":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","name","email","senderName"]},"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.mail.mailboxdto"}}}}}}}}}}},"\/mail.mailbox.list":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","name","email","senderName"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object"},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.mail.mailboxdto"}}}}}}}}}},"\/mail.mailbox.senders":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","name","email","senderName"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object"},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.mail.mailboxdto"}}}}}}}}}},"\/mail.message.get":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","mailboxId","mailboxEmail","subject","from","to","cc","date","isSeen","hasAttachments","url","bindings","body"]},"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.mail.messagedto"}}}}}}}}}}},"\/mail.message.list":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","mailboxId","mailboxEmail","subject","from","to","cc","date","isSeen","hasAttachments","url","bindings","body"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object"},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.mail.messagedto"}}}}}}}}}},"\/mail.message.send":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.message.reply":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.message.forward":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.message.createcrmactivity":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/mail.message.removecrmactivity":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/mail.message.thread":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","mailboxId","mailboxEmail","subject","from","to","cc","date","isSeen","hasAttachments","url","bindings","body"]},"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.message.movetofolder":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.message.createtask":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.message.createcalendarevent":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.message.createchat":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.message.createfeedpost":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"tags":["mail"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/mail.recipient.listcontacts":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","email","name"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object"},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.mail.recipientdto"}}}}}}}}}},"\/mail.recipient.listemployees":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","email","name"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object"},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.mail.recipientdto"}}}}}}}}}},"\/main.eventlog.list":{"post":{"summary":"Get record list","description":"Retrieves a list of specified records.","tags":["main"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","timestampX","severity","auditTypeId","moduleId","itemId","remoteAddr","userAgent","requestUri","siteId","userId","guestId","description"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object","properties":{"id":{"type":"string","example":"ASC"},"timestampX":{"type":"string","example":"ASC"},"auditTypeId":{"type":"string","example":"ASC"},"userId":{"type":"string","example":"ASC"},"guestId":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.main.eventlogdto"}}}}}}}}}},"\/main.eventlog.get":{"post":{"summary":"Get record","description":"Retrieves a record by the specified ID.","tags":["main"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","timestampX","severity","auditTypeId","moduleId","itemId","remoteAddr","userAgent","requestUri","siteId","userId","guestId","description"]},"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.main.eventlogdto"}}}}}}}}}}},"\/main.eventlog.tail":{"post":{"summary":"Get recent records","description":"Retrieves the most recent records.","tags":["main"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","timestampX","severity","auditTypeId","moduleId","itemId","remoteAddr","userAgent","requestUri","siteId","userId","guestId","description"]},"filter":{"type":"array"},"cursor":{"type":"object","example":{"field":"id","value":0,"order":"ASC"}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.main.eventlogdto"}}}}}}}}}},"\/note.collection.list":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"pagination":{"type":"object","properties":{"limit":{"type":"integer"},"afterCursor":{"type":"object","properties":{"position":{"type":"integer"},"id":{"type":"integer"}}}}}}}}}},"responses":{"200":{"content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.note.collectionitemdto"}},"nextCursor":{"type":"object","nullable":true,"properties":{"position":{"type":"integer"},"id":{"type":"integer"}}}}}}}}}}}}},"\/note.collection.get":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","name","position","policyLevel","createdBy","createdAt","updatedBy","updatedAt"]},"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.note.collectionitemdto"}}}}}}}}}}},"\/note.collection.add":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","properties":{"name":{"type":"string"},"position":{"type":"integer","format":"int64"}},"required":["name"]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.note.collectionitemdto"}}}}}}}}}}},"\/note.collection.update":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"fields":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.note.collectionitemdto"}}}}}}}}}}},"\/note.collection.archive":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/note.collection.delete":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/note.document.get":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","collectionId","parentId","title","markdown","position","createdBy","updatedBy","createdAt","updatedAt"]},"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.note.documentitemdto"}}}}}}}}}}},"\/note.document.add":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","properties":{"collectionId":{"type":"integer","format":"int64"},"parentId":{"type":"integer","format":"int64"},"title":{"type":"string"},"markdown":{"type":"string"}},"required":["collectionId","title"]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.note.documentitemdto"}}}}}}}}}}},"\/note.document.update":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"overwrite":{"type":"boolean","example":true},"id":{"type":"integer","example":1},"fields":{"type":"object","properties":{"title":{"type":"string"},"markdown":{"type":"string"}}},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.note.documentitemdto"}}}}}}}}}}},"\/note.document.archive":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/note.document.delete":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/note.document.tree.list":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["collectionId"],"properties":{"collectionId":{"type":"integer"}}}}}},"responses":{"200":{"content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.note.documenttreeitemdto"}},"truncated":{"type":"boolean"}}}}},"example":{"result":{"items":[{"id":10,"collectionId":123,"parentId":null,"title":"Введение","position":1,"children":[{"id":11,"collectionId":123,"parentId":10,"title":"Глава 1","position":1,"children":[]}]}],"truncated":false}}}}}}}},"\/note.document.search.list":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["query"],"properties":{"query":{"type":"string"},"pagination":{"type":"object","properties":{"limit":{"type":"integer"}}}}}}}},"responses":{"200":{"content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.note.searchresultitemdto"}},"hasMore":{"type":"boolean"}}}}}}}}}}},"\/note.file.add":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"documentId":{"type":"integer","example":1},"fileName":{"type":"string","example":"string"},"fileContent":{"type":"string","example":"string"}},"required":["documentId","fileName","fileContent"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.note.fileitemdto"}}}}}}}}}}},"\/note.file.get":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"documentId":{"type":"integer","example":1}},"required":["id","documentId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.note.fileitemdto"}}}}}}}}}}},"\/rest.scope.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"filterModule":{"type":"string","example":"string"},"filterController":{"type":"string","example":"string"},"filterMethod":{"type":"string","example":"string"}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/rest.documentation.openapi":{"post":{"summary":"Open API Documentation","description":"Retrieves documentation in Open API format.","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"summary":"Open API Documentation","description":"Retrieves documentation in Open API format.","tags":["rest"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/call.followup.field.list":{"post":{"tags":["call"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/call.followup.field.get":{"post":{"tags":["call"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/humanresources.employee.field.list":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/humanresources.employee.field.get":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/humanresources.node.field.list":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/humanresources.node.field.get":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/humanresources.node.member.field.list":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/humanresources.node.member.field.get":{"post":{"tags":["humanresources"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/mail.mailbox.field.list":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/mail.mailbox.field.get":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/mail.message.field.list":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/mail.message.field.get":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/mail.recipient.field.list":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/mail.recipient.field.get":{"post":{"tags":["mail"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/main.eventlog.field.list":{"post":{"tags":["main"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/main.eventlog.field.get":{"post":{"tags":["main"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/note.collection.field.list":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/note.collection.field.get":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/note.document.field.list":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/note.document.field.get":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/note.document.tree.field.list":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/note.document.tree.field.get":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/note.document.search.field.list":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/note.document.search.field.get":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/note.file.field.list":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/note.file.field.get":{"post":{"tags":["note"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.app.scoperequest.field.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/rest.app.scoperequest.field.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.deferredbatch.field.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/rest.deferredbatch.field.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.application.field.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/rest.application.field.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.incomingwebhook.field.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/rest.incomingwebhook.field.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.application.access.field.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/rest.application.access.field.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.application.embedding.field.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/rest.application.embedding.field.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.application.local.field.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/rest.application.local.field.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.application.personal.field.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/rest.application.personal.field.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.application.placement.field.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/rest.application.placement.field.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/tasks.task.field.list":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/tasks.task.field.get":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/tasks.task.chat.message.field.list":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/tasks.task.chat.message.field.get":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/tasks.task.result.field.list":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/tasks.task.result.field.get":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/timeman.record.field.list":{"post":{"tags":["timeman"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/timeman.record.field.get":{"post":{"tags":["timeman"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/vibecodeconnector.catalog.item.field.list":{"post":{"tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/vibecodeconnector.catalog.item.field.get":{"post":{"tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/vibecodeconnector.catalog.item.access.field.list":{"post":{"tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/vibecodeconnector.catalog.item.access.field.get":{"post":{"tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/vibecodeconnector.catalog.item.pin.field.list":{"post":{"tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}},"\/vibecodeconnector.catalog.item.pin.field.get":{"post":{"tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["name","type","title","description","validationRules","requiredGroups","filterable","sortable","editable","multiple","elementType"]}},"required":["name"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.dtofielddto"}}}}}}}}}}},"\/rest.app.scoperequest.add":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","properties":{"scopes":{"type":"array"},"comment":{"type":"string"}},"required":["scopes","comment"]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.scoperequestdto"}}}}}}}}}}},"\/rest.app.scoperequest.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","appId","scopes","status","currentState","comment","createdAt","history"]},"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.scoperequestdto"}}}}}}}}}}},"\/rest.app.scoperequest.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","appId","scopes","status","currentState","comment","createdAt","history"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object","properties":{"id":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.scoperequestdto"}}}}}}}}}},"\/rest.deferredbatch.add":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","properties":{"commands":{"type":"array"}},"required":["commands"]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.deferredbatchdto"}}}}}}}}}}},"\/rest.deferredbatch.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","status","commands","createdAt","updatedAt","resultFileId","errorMessage"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object","properties":{"id":{"type":"string","example":"ASC"},"status":{"type":"string","example":"ASC"},"createdAt":{"type":"string","example":"ASC"},"updatedAt":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.deferredbatchdto"}}}}}}}}}},"\/rest.deferredbatch.get":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","status","commands","createdAt","updatedAt","resultFileId","errorMessage"]},"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.deferredbatchdto"}}}}}}}}}}},"\/rest.deferredbatch.downloadresult":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"downloadUrl":{"type":"string"}}}}}}}}}}},"\/rest.deferredbatch.delete":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/rest.application.getbyclientid":{"post":{"summary":"Returns the application by OAuth client ID","description":"Request example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["id","clientId","clientSecret","applicationToken","scopes","title","url","urlInstall","urlSettings","mobile","version","active","installed","dateCreate","dateInstall","attributes"]}},"required":["clientId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.appdto"}}}}}}}}}}},"\/rest.application.list":{"post":{"summary":"Returns a list of installed applications","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"attributes":{"type":"array"},"select":{"type":"array","items":{"type":"string"},"example":["id","clientId","clientSecret","applicationToken","scopes","title","url","urlInstall","urlSettings","mobile","version","active","installed","dateCreate","dateInstall","attributes"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object","properties":{"id":{"type":"string","example":"ASC"},"clientId":{"type":"string","example":"ASC"},"title":{"type":"string","example":"ASC"},"version":{"type":"string","example":"ASC"},"dateCreate":{"type":"string","example":"ASC"},"dateInstall":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}},"required":["attributes"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.appdto"}}}}}}}}}},"\/rest.incomingwebhook.add":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"title":{"type":"string","example":"string"},"scopes":{"type":"array"},"attributes":{"type":"array"},"select":{"type":"array","items":{"type":"string"},"example":["url","scopes","title","active","userId","dateCreate","attributes"]}},"required":["title","scopes","attributes"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.incomingwebhookdto"}}}}}}}}}}},"\/rest.incomingwebhook.update":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"fields":{"type":"object","properties":{"scopes":{"type":"array"},"title":{"type":"string"}}}},"required":["id","fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/rest.incomingwebhook.delete":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/rest.incomingwebhook.list":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["url","scopes","title","active","userId","dateCreate","attributes"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object","properties":{"dateCreate":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.incomingwebhookdto"}}}}}}}}}},"\/rest.application.access.set":{"post":{"summary":"Sets the application access codes","description":"Replaces all existing access codes for the application with the provided ones.\n\t\tFor personal applications, the owner user access code is always added to the saved access codes.\n\t\tAccess codes define which users or groups can use the application.\n\t\tAdministrators and personal application owners always have access regardless of access codes.\n\t\tFor shared applications, if no access codes are set, the application is available to everyone.\n\t\tFor personal applications, if no access codes are set, only the owner and administrators have access.\n\t\tRequest example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022,\n\t\t\t\u0022codes\u0022: [\u0022UA\u0022, \u0022D1\u0022]\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["clientId","codes"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/rest.application.access.delete":{"post":{"summary":"Deletes the application access codes","description":"Removes specified access codes from the application.\n\t\tOnly the provided codes are removed; other existing codes remain unchanged.\n\t\tAdministrators and personal application owners always have access regardless of access codes.\n\t\tRequest example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022,\n\t\t\t\u0022codes\u0022: [\u0022D1\u0022]\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["clientId","codes"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/rest.application.access.reset":{"post":{"summary":"Resets the application access to default values","description":"Removes all custom access codes and restores the default access settings for the application.\n\t\tFor personal applications, the default is the owner and administrators only.\n\t\tFor shared applications, the default is no restrictions (available to everyone).\n\t\tRequest example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"}},"required":["clientId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/rest.application.access.get":{"post":{"summary":"Returns the application access codes","description":"Returns the current access codes assigned to the application,\n\t\tincluding detailed information about each code (provider and display name).\n\t\tAdministrators and personal application owners always have access regardless of access codes.\n\t\tFor shared applications, if no access codes are set, the application is available to everyone.\n\t\tFor personal applications, if no access codes are set, only the owner and administrators have access.\n\t\tRequest example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["clientId","codes","codesDetails"]}},"required":["clientId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.accessdto"}}}}}}}}}}},"\/rest.application.embedding.list":{"post":{"summary":"Returns a list of application embedding areas","description":"Request example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"},"select":{"type":"array","items":{"type":"string"},"example":["id","userId","placement","handler","title","description","groupName","additional","options","languages"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object"},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}},"required":["clientId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.rest.embeddingdto"}}}}}}}}}},"\/rest.application.embedding.add":{"post":{"summary":"Adds a new application embedding area","description":"Request example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022,\n\t\t\t\u0022placement\u0022: \u0022IM_CONTEXT_MENU\u0022,\n\t\t\t\u0022handler\u0022: \u0022https:\/\/example.com\/embed\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"},"placement":{"type":"string","example":"string"},"handler":{"type":"string","example":"string"},"userId":{"type":"integer","example":1},"title":{"type":"string","example":"string"},"description":{"type":"string","example":"string"},"groupName":{"type":"string","example":"string"},"settings":{"type":"array"},"languages":{"type":"array"}},"required":["clientId","placement","handler","userId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/rest.application.embedding.delete":{"post":{"summary":"Deletes an existing embedding area","description":"If `handler` is provided, only the embedding with that handler will be deleted.\n\t\tIf `userId` is provided, only the embedding for that user will be deleted.\n\t\tRequest example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022,\n\t\t\t\u0022placement\u0022:\u0022IM_CONTEXT_MENU\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"},"placement":{"type":"string","example":"string"},"handler":{"type":"string","example":"string"},"userId":{"type":"integer","example":1}},"required":["clientId","placement"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/rest.application.local.install":{"post":{"summary":"Installs a local shared application","description":"Request example:\n\t\t{\n\t\t\t\u0022title\u0022: \u0022Test application\u0022,\n\t\t\t\u0022handlerUrl\u0022: \u0022https:\/\/example.com\u0022,\n\t\t\t\u0022scopes\u0022: [\u0022crm\u0022],\n\t\t\t\u0022mobile\u0022: false,\n\t\t\t\u0022menuTitles\u0022: {\n\t\t\t\t\u0022en\u0022: \u0022Test application\u0022\n\t\t\t}\n\t\t}\n\t\tIf `menuTitles` is omitted, the application is installed as API-only: \n\t\tit is not shown in the Bitrix24 interface, and its only way to access the portal is through the REST API, \n\t\tbut it can still add embeddings.","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"title":{"type":"string","example":"string"},"handlerUrl":{"type":"string","example":"string"},"scopes":{"type":"array"},"mobile":{"type":"boolean","example":true},"menuTitles":{"type":"array"},"clientId":{"type":"string","example":"string"},"applicationToken":{"type":"string","example":"string"},"attributes":{"type":"array"},"select":{"type":"array","items":{"type":"string"},"example":["id","clientId","clientSecret","applicationToken","scopes","title","url","urlInstall","urlSettings","mobile","version","active","installed","dateCreate","dateInstall","attributes"]}},"required":["title","handlerUrl","scopes","mobile","menuTitles","attributes"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.appdto"},"oauthToken":{"$ref":"#\/components\/schemas\/bitrix.rest.oauthtokendto"}}}}}}}}}}},"\/rest.application.local.uninstall":{"post":{"summary":"Uninstalls an existing local shared application","description":"Request example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"}},"required":["clientId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/rest.application.personal.install":{"post":{"summary":"Installs a local personal application","description":"Request example:\n\t\t{\n\t\t\t\u0022title\u0022: \u0022Test application\u0022,\n\t\t\t\u0022handlerUrl\u0022: \u0022https:\/\/example.com\u0022,\n\t\t\t\u0022scopes\u0022: [\u0022crm\u0022],\n\t\t\t\u0022mobile\u0022: false,\n\t\t\t\u0022menuTitles\u0022: {\n\t\t\t\t\u0022en\u0022: \u0022Test application\u0022\n\t\t\t}\n\t\t}\n\t\tIf `menuTitles` is omitted, the application is installed as API-only: \n\t\tit is not shown in the Bitrix24 interface, and its only way to access the portal is through the REST API, \n\t\tbut it can still add embeddings.","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"title":{"type":"string","example":"string"},"handlerUrl":{"type":"string","example":"string"},"scopes":{"type":"array"},"mobile":{"type":"boolean","example":true},"menuTitles":{"type":"array"},"clientId":{"type":"string","example":"string"},"applicationToken":{"type":"string","example":"string"},"attributes":{"type":"array"},"select":{"type":"array","items":{"type":"string"},"example":["id","clientId","clientSecret","applicationToken","scopes","title","url","urlInstall","urlSettings","mobile","version","active","installed","dateCreate","dateInstall","attributes"]}},"required":["title","handlerUrl","scopes","mobile","menuTitles","attributes"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.rest.appdto"},"oauthToken":{"$ref":"#\/components\/schemas\/bitrix.rest.oauthtokendto"}}}}}}}}}}},"\/rest.application.personal.uninstall":{"post":{"summary":"Uninstalls an existing local personal application","description":"Request example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"}},"required":["clientId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/rest.application.placement.list":{"post":{"summary":"Returns a list of available embedding areas","description":"If `scope` is provided, only placements for that scope are returned, and other parameters are ignored.\n\t\tIf `showAll` is `true`, all available placements are returned.\n\t\tIf `clientId` is provided, only placements available to that application are returned.\n\t\tIf no parameters are provided, all available placements are returned.\n\t\tRequest example:\n\t\t{\n\t\t\t\u0022clientId\u0022: \u0022local.69b9196bdbd793.03286491\u0022\n\t\t}","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","example":"string"},"scope":{"type":"string","example":"string"},"showAll":{"type":"boolean","example":true}},"required":["showAll"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/rest.portal.license.get":{"post":{"summary":"Gets portal license information","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"summary":"Gets portal license information","tags":["rest"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/tasks.task.update":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"fields":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"responsibleId":{"type":"integer","format":"int64"},"deadline":{"type":"string","format":"date-time"},"needsControl":{"type":"boolean"},"startPlan":{"type":"string","format":"date-time"},"endPlan":{"type":"string","format":"date-time"},"fileIds":{"type":"array"},"checklist":{"type":"array"},"groupId":{"type":"integer","format":"int64"},"stageId":{"type":"integer","format":"int64"},"epicId":{"type":"integer","format":"int64"},"storyPoints":{"type":"integer","format":"int64"},"flowId":{"type":"integer","format":"int64"},"priority":{"type":"string"},"status":{"type":"string"},"statusChanged":{"type":"string","format":"date-time"},"parentId":{"type":"integer","format":"int64"},"containsChecklist":{"type":"boolean"},"containsSubTasks":{"type":"boolean"},"containsRelatedTasks":{"type":"boolean"},"containsGanttLinks":{"type":"boolean"},"containsPlacements":{"type":"boolean"},"containsResults":{"type":"boolean"},"numberOfReminders":{"type":"integer","format":"int64"},"chatId":{"type":"integer","format":"int64"},"plannedDuration":{"type":"integer","format":"int64"},"actualDuration":{"type":"integer","format":"int64"},"durationType":{"type":"string"},"started":{"type":"string","format":"date-time"},"estimatedTime":{"type":"integer","format":"int64"},"replicate":{"type":"boolean"},"changed":{"type":"string","format":"date-time"},"changedById":{"type":"integer","format":"int64"},"statusChangedById":{"type":"integer","format":"int64"},"closedById":{"type":"integer","format":"int64"},"closed":{"type":"string","format":"date-time"},"activity":{"type":"string","format":"date-time"},"guid":{"type":"string"},"xmlId":{"type":"string"},"exchangeId":{"type":"string"},"exchangeModified":{"type":"string"},"outlookVersion":{"type":"integer","format":"int64"},"mark":{"type":"string"},"allowsChangeDeadline":{"type":"boolean"},"allowsTimeTracking":{"type":"boolean"},"matchesWorkTime":{"type":"boolean"},"addInReport":{"type":"boolean"},"isMultitask":{"type":"boolean"},"siteId":{"type":"string"},"forkedByTemplateId":{"type":"integer","format":"int64"},"deadlineCount":{"type":"integer","format":"int64"},"declineReason":{"type":"string"},"forumTopicId":{"type":"integer","format":"int64"},"link":{"type":"string"},"rights":{"type":"array"},"archiveLink":{"type":"string"},"crmItemIds":{"type":"array"},"reminders":{"type":"array"},"requireResult":{"type":"boolean"},"matchesSubTasksTime":{"type":"boolean"},"autocompleteSubTasks":{"type":"boolean"},"allowsChangeDatePlan":{"type":"boolean"},"emailId":{"type":"integer","format":"int64"},"maxDeadlineChangeDate":{"type":"string","format":"date-time"},"maxDeadlineChanges":{"type":"integer","format":"int64"},"requireDeadlineChangeReason":{"type":"boolean"},"inFavorite":{"type":"array"},"inPin":{"type":"array"},"inGroupPin":{"type":"array"},"inMute":{"type":"array"},"dependsOn":{"type":"array"},"scenarios":{"type":"array"}}},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/tasks.task.delete":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/tasks.task.add":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"creatorId":{"type":"integer","format":"int64"},"responsibleId":{"type":"integer","format":"int64"},"deadline":{"type":"string","format":"date-time"},"needsControl":{"type":"boolean"},"startPlan":{"type":"string","format":"date-time"},"endPlan":{"type":"string","format":"date-time"},"fileIds":{"type":"array"},"checklist":{"type":"array"},"groupId":{"type":"integer","format":"int64"},"stageId":{"type":"integer","format":"int64"},"epicId":{"type":"integer","format":"int64"},"storyPoints":{"type":"integer","format":"int64"},"flowId":{"type":"integer","format":"int64"},"priority":{"type":"string"},"status":{"type":"string"},"statusChanged":{"type":"string","format":"date-time"},"parentId":{"type":"integer","format":"int64"},"containsChecklist":{"type":"boolean"},"containsSubTasks":{"type":"boolean"},"containsRelatedTasks":{"type":"boolean"},"containsGanttLinks":{"type":"boolean"},"containsPlacements":{"type":"boolean"},"containsResults":{"type":"boolean"},"numberOfReminders":{"type":"integer","format":"int64"},"chatId":{"type":"integer","format":"int64"},"plannedDuration":{"type":"integer","format":"int64"},"actualDuration":{"type":"integer","format":"int64"},"durationType":{"type":"string"},"started":{"type":"string","format":"date-time"},"estimatedTime":{"type":"integer","format":"int64"},"replicate":{"type":"boolean"},"changed":{"type":"string","format":"date-time"},"changedById":{"type":"integer","format":"int64"},"statusChangedById":{"type":"integer","format":"int64"},"closedById":{"type":"integer","format":"int64"},"closed":{"type":"string","format":"date-time"},"activity":{"type":"string","format":"date-time"},"guid":{"type":"string"},"xmlId":{"type":"string"},"exchangeId":{"type":"string"},"exchangeModified":{"type":"string"},"outlookVersion":{"type":"integer","format":"int64"},"mark":{"type":"string"},"allowsChangeDeadline":{"type":"boolean"},"allowsTimeTracking":{"type":"boolean"},"matchesWorkTime":{"type":"boolean"},"addInReport":{"type":"boolean"},"isMultitask":{"type":"boolean"},"siteId":{"type":"string"},"forkedByTemplateId":{"type":"integer","format":"int64"},"deadlineCount":{"type":"integer","format":"int64"},"declineReason":{"type":"string"},"forumTopicId":{"type":"integer","format":"int64"},"link":{"type":"string"},"rights":{"type":"array"},"archiveLink":{"type":"string"},"crmItemIds":{"type":"array"},"reminders":{"type":"array"},"requireResult":{"type":"boolean"},"matchesSubTasksTime":{"type":"boolean"},"autocompleteSubTasks":{"type":"boolean"},"allowsChangeDatePlan":{"type":"boolean"},"emailId":{"type":"integer","format":"int64"},"maxDeadlineChangeDate":{"type":"string","format":"date-time"},"maxDeadlineChanges":{"type":"integer","format":"int64"},"requireDeadlineChangeReason":{"type":"boolean"},"inFavorite":{"type":"array"},"inPin":{"type":"array"},"inGroupPin":{"type":"array"},"inMute":{"type":"array"},"dependsOn":{"type":"array"},"scenarios":{"type":"array"}},"required":["title","creatorId","responsibleId"]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.tasks.taskdto"}}}}}}}}}}},"\/tasks.task.get":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","title","description","creatorId","created","responsibleId","deadline","needsControl","startPlan","endPlan","fileIds","checklist","groupId","stageId","epicId","storyPoints","flowId","priority","status","statusChanged","parentId","containsChecklist","containsSubTasks","containsRelatedTasks","containsGanttLinks","containsPlacements","containsResults","numberOfReminders","chatId","plannedDuration","actualDuration","durationType","started","estimatedTime","replicate","changed","changedById","statusChangedById","closedById","closed","activity","guid","xmlId","exchangeId","exchangeModified","outlookVersion","mark","allowsChangeDeadline","allowsTimeTracking","matchesWorkTime","addInReport","isMultitask","siteId","forkedByTemplateId","deadlineCount","declineReason","forumTopicId","link","rights","archiveLink","crmItemIds","crmItems","reminders","elapsedTime","requireResult","matchesSubTasksTime","autocompleteSubTasks","allowsChangeDatePlan","emailId","maxDeadlineChangeDate","maxDeadlineChanges","requireDeadlineChangeReason","inFavorite","inPin","inGroupPin","inMute","source","dependsOn","scenarios"]},"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.tasks.taskdto"}}}}}}}}}}},"\/tasks.task.list":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"select":{"type":"array","items":{"type":"string"},"example":["id","title","description","creatorId","created","responsibleId","deadline","needsControl","startPlan","endPlan","fileIds","checklist","groupId","stageId","epicId","storyPoints","flowId","priority","status","statusChanged","parentId","containsChecklist","containsSubTasks","containsRelatedTasks","containsGanttLinks","containsPlacements","containsResults","numberOfReminders","chatId","plannedDuration","actualDuration","durationType","started","estimatedTime","replicate","changed","changedById","statusChangedById","closedById","closed","activity","guid","xmlId","exchangeId","exchangeModified","outlookVersion","mark","allowsChangeDeadline","allowsTimeTracking","matchesWorkTime","addInReport","isMultitask","siteId","forkedByTemplateId","deadlineCount","declineReason","forumTopicId","link","rights","archiveLink","crmItemIds","crmItems","reminders","elapsedTime","requireResult","matchesSubTasksTime","autocompleteSubTasks","allowsChangeDatePlan","emailId","maxDeadlineChangeDate","maxDeadlineChanges","requireDeadlineChangeReason","inFavorite","inPin","inGroupPin","inMute","source","dependsOn","scenarios"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"order":{"type":"object","properties":{"id":{"type":"string","example":"ASC"},"title":{"type":"string","example":"ASC"},"creatorId":{"type":"string","example":"ASC"},"created":{"type":"string","example":"ASC"},"responsibleId":{"type":"string","example":"ASC"},"deadline":{"type":"string","example":"ASC"},"startPlan":{"type":"string","example":"ASC"},"endPlan":{"type":"string","example":"ASC"},"groupId":{"type":"string","example":"ASC"},"priority":{"type":"string","example":"ASC"},"status":{"type":"string","example":"ASC"},"started":{"type":"string","example":"ASC"},"estimatedTime":{"type":"string","example":"ASC"},"changed":{"type":"string","example":"ASC"},"closed":{"type":"string","example":"ASC"},"activity":{"type":"string","example":"ASC"},"mark":{"type":"string","example":"ASC"},"allowsChangeDeadline":{"type":"string","example":"ASC"},"allowsTimeTracking":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.tasks.taskdto"}}}}}}}}}},"\/tasks.task.access.get":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1}},"required":["id"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/tasks.task.file.attach":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"taskId":{"type":"integer","example":1},"fileIds":{"type":"array"}},"required":["taskId","fileIds"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/tasks.task.chat.message.send":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","properties":{"taskId":{"type":"integer","format":"int64"},"text":{"type":"string"}},"required":["taskId","text"]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/tasks.task.result.add":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","properties":{"taskId":{"type":"integer","format":"int64"},"text":{"type":"string"}},"required":["taskId","text"]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.tasks.resultdto"}}}}}}}}}}},"\/tasks.task.result.addfromchatmessage":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","properties":{"text":{"type":"string"},"messageId":{"type":"integer","format":"int64"}},"required":["messageId"]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.tasks.resultdto"}}}}}}}}}}},"\/tasks.task.result.update":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"fields":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]}},"required":["fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"item":{"$ref":"#\/components\/schemas\/bitrix.tasks.resultdto"}}}}}}}}}}},"\/tasks.task.result.delete":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":1},"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/tasks.task.result.list":{"post":{"tags":["tasks"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"select":{"type":"array","items":{"type":"string"},"example":["id","taskId","text","authorId","createdAt","updatedAt","status","fileIds","rights","messageId"]},"order":{"type":"object","properties":{"id":{"type":"string","example":"ASC"},"authorId":{"type":"string","example":"ASC"},"createdAt":{"type":"string","example":"ASC"},"updatedAt":{"type":"string","example":"ASC"},"status":{"type":"string","example":"ASC"},"messageId":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.tasks.resultdto"}}}}}}}}}},"\/timeman.record.list":{"post":{"tags":["timeman"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"filter":{"type":"array","example":[["id","\u003E=",1],["id",1],["id","in",[1,2,3]]]},"select":{"type":"array","items":{"type":"string"},"example":["id","userId","startTime","endTime","duration","breakLength","state","isApproved"]},"order":{"type":"object","properties":{"id":{"type":"string","example":"ASC"},"userId":{"type":"string","example":"ASC"},"startTime":{"type":"string","example":"ASC"},"endTime":{"type":"string","example":"ASC"},"duration":{"type":"string","example":"ASC"}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","example":2},"limit":{"type":"integer","example":20},"offset":{"type":"integer","example":0}}}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.timeman.recorddto"}}}}}}}}}},"\/vibecodeconnector.catalog.item.add":{"post":{"description":"Creates a catalog item owned by the current REST user","tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"title":{"type":"string","example":"string"},"type":{"type":"string","example":"string"},"accessType":{"type":"string","example":"string"},"description":{"type":"string","example":"string"},"editUrl":{"type":"string","example":"string"},"viewUrl":{"type":"string","example":"string"},"iconUrl":{"type":"string","example":"string"},"chatId":{"type":"integer","example":1},"externalId":{"type":"string","example":"string"},"iss":{"type":"string","example":"string"}},"required":["title","type","accessType"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"id":{"type":"integer","format":"int64"}}}}}}}}}}},"\/vibecodeconnector.catalog.item.update":{"post":{"description":"Updates editable fields of a catalog item owned by the current REST user","tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"catalogItemId":{"type":"integer","example":1},"fields":{"type":"object","properties":{"title":{"type":"string"},"accessType":{"type":"string"},"description":{"type":"string"},"editUrl":{"type":"string"},"viewUrl":{"type":"string"},"iconUrl":{"type":"string"},"chatId":{"type":"integer","format":"int64"},"externalId":{"type":"string"}}}},"required":["catalogItemId","fields"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/vibecodeconnector.catalog.item.delete":{"post":{"description":"Deletes a catalog item owned by the current REST user","tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"catalogItemId":{"type":"integer","example":1}},"required":["catalogItemId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/vibecodeconnector.catalog.item.access.set":{"post":{"description":"Replaces all ACL access codes for a catalog item owned by the current REST user","tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"catalogItemId":{"type":"integer","example":1},"accessCodes":{"type":"array"}},"required":["catalogItemId","accessCodes"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/vibecodeconnector.catalog.item.pin.set":{"post":{"description":"Pins a catalog item for the current REST user","tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"catalogItemId":{"type":"integer","example":1}},"required":["catalogItemId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/vibecodeconnector.catalog.item.pin.delete":{"post":{"description":"Removes the current REST user pin from a catalog item","tags":["vibecodeconnector"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"catalogItemId":{"type":"integer","example":1}},"required":["catalogItemId"]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}}}}}},"\/batch":{"post":{"tags":[],"requestBody":{"content":{"application\/json":{"schema":{"type":"object"}}}},"responses":[],"summary":"Batch call","description":"Executes a batch call of multiple methods inside a single request."}},"\/documentation":{"post":{"summary":"Open API Documentation","description":"Retrieves documentation in Open API format.","tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":[]}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}},"get":{"summary":"Open API Documentation","description":"Retrieves documentation in Open API format.","tags":["rest"],"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}},"\/scopes":{"post":{"tags":["rest"],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"filterModule":{"type":"string","example":"string"},"filterController":{"type":"string","example":"string"},"filterMethod":{"type":"string","example":"string"}}}}}},"responses":{"200":{"description":"Success response","content":{"application\/json":{"schema":{"type":"object","properties":{"result":{"type":"object"}}}}}}}}}},"components":{"schemas":{"bitrix.call.followupdto":{"type":"object","properties":{"callId":{"type":"integer","format":"int64","title":"callId","description":"Bitrix24 call identifier (b_call.ID). Always present."},"callType":{"type":"integer","format":"int64","title":"callType","description":"Call type: 1 = instant ad-hoc, 2 = permanent conference room, 3 = large room."},"initiatorId":{"type":"integer","format":"int64","title":"initiatorId","description":"User id of who initiated the call."},"startDate":{"type":"string","title":"startDate","description":"ISO 8601 UTC timestamp when the call started."},"endDate":{"type":"string","title":"endDate","description":"ISO 8601 UTC timestamp when the call ended. Null while the call is still in progress."},"durationSeconds":{"type":"integer","format":"int64","title":"durationSeconds","description":"Total call duration in seconds (endDate − startDate)."},"uuid":{"type":"string","title":"uuid","description":"Opaque UUID of the call session. Opt-in: list this in `select` to receive it."},"language":{"type":"string","title":"language","description":"Detected transcription language (BCP-47 \/ ISO 639-1, e.g. \u0022ru\u0022, \u0022en\u0022). Null when there is no transcription."},"version":{"type":"integer","format":"int64","title":"version","description":"Maximum schema version across all stored outcome blocks (transcription, overview, summary, insights, evaluation)."},"participants":{"type":"array","title":"participants","description":"Call participants, enriched with display data from Util::getUsers (name, avatar, work position). Opt-in via `select`."},"outcomes":{"type":"array","title":"outcomes","description":"Names of outcome blocks present for this call: any subset of [transcription, overview, summary, insights, evaluation]."},"createdAt":{"type":"string","title":"createdAt","description":"ISO 8601 UTC timestamp of the most recently stored outcome record for this call."},"tracks":{"type":"array","title":"tracks","description":"Call recordings \/ tracks with download URLs. Opt-in via `select`."},"transcription":{"$ref":"#\/components\/schemas\/bitrix.call.transcriptiondto","title":"transcription","description":"Time-ordered transcription of the call with per-segment speaker attribution."},"overview":{"$ref":"#\/components\/schemas\/bitrix.call.overviewdto","title":"overview","description":"AI overview of the meeting: topic, agenda, agreements, action items, takeaways."},"summary":{"$ref":"#\/components\/schemas\/bitrix.call.summarydto","title":"summary","description":"Segmented summary of the call by topic chunks."},"insights":{"$ref":"#\/components\/schemas\/bitrix.call.insightsdto","title":"insights","description":"AI insights: per-speaker analysis (CIS only), meeting strengths\/weaknesses, recommendations."},"evaluation":{"$ref":"#\/components\/schemas\/bitrix.call.evaluationdto","title":"evaluation","description":"Meeting efficiency evaluation: overall score and individual evaluation criteria."}}},"bitrix.call.transcriptiondto":{"type":"object","properties":{"language":{"type":"string","title":"language","description":"Detected transcription language as BCP-47 \/ ISO 639-1 code (e.g. \u0022ru\u0022, \u0022en\u0022). Null when the language could not be determined."},"segments":{"type":"array","title":"segments","description":"Time-ordered transcription segments. Each segment is one continuous utterance by a single speaker."}}},"bitrix.call.overviewdto":{"type":"object","properties":{"topic":{"type":"string","title":"topic","description":"AI-detected meeting topic in one short phrase."},"detailedTakeaways":{"type":"string","title":"detailedTakeaways","description":"Long-form summary of meeting outcomes (multiple sentences). @-mentions are rendered in the selected mentionFormat."},"meetingType":{"type":"array","title":"meetingType","description":"Meeting type. Shape: { explanation: string, typeTag: string (raw AI tag, e.g. \u0022planning\u0022), title: string (localized) }."},"agenda":{"type":"array","title":"agenda","description":"Agenda detection. Shape: { explanation: string (was an agenda announced and how it was set), quote: string (verbatim agenda quote from transcription) }."},"agreements":{"type":"array","title":"agreements","description":"List of explicit agreements. Each item: { agreement: string (AI-rephrased agreement, may contain @-mentions in selected mentionFormat), quote?: string (supporting transcription excerpt) }."},"actionItems":{"type":"array","title":"actionItems","description":"Action items. Each item: { actionItem: string (with @-mentions), actionItemMentionLess?: string (same text without markup), quote?: string }."},"meetings":{"type":"array","title":"meetings","description":"Planned follow-up meetings. Each item: { meeting: string (with @-mentions), meetingMentionLess?: string, quote?: string }."}}},"bitrix.call.summarydto":{"type":"object","properties":{"segments":{"type":"array","title":"segments","description":"Time-ordered segments of the meeting summary. Each segment covers a continuous topical chunk of the call."}}},"bitrix.call.insightsdto":{"type":"object","properties":{"speakerEvaluationAvailable":{"type":"boolean","title":"speakerEvaluationAvailable","description":"Whether per-speaker evaluation is available on this portal. False for non-CIS regions; speakerAnalysis is empty in that case."},"speakerAnalysis":{"type":"array","title":"speakerAnalysis","description":"Per-speaker analysis, sorted by talkPercentage DESC, efficiencyValue DESC. Each item: { userId, detailedInsight, efficiencyValue (0..100), evaluationCriteria (map of criterion-\u003E{value,criteria,title}), talkPercentage, duration (seconds), durationFormat (localized human label) }."},"meetingStrengths":{"type":"array","title":"meetingStrengths","description":"Meeting strengths. Each item: { strengthTitle: string (short label), strengthExplanation: string (detailed reasoning) }."},"meetingWeaknesses":{"type":"array","title":"meetingWeaknesses","description":"Meeting weaknesses. Each item: { weaknessTitle: string, weaknessExplanation: string }."},"speechStyleInfluence":{"type":"string","title":"speechStyleInfluence","description":"AI commentary on how speakers\u0027 communication style affected the meeting outcome."},"engagementLevel":{"type":"string","title":"engagementLevel","description":"Free-form AI assessment of overall meeting engagement."},"areasOfResponsibility":{"type":"string","title":"areasOfResponsibility","description":"AI-detected delegated areas of responsibility and ownership coming out of the meeting."},"finalRecommendations":{"type":"string","title":"finalRecommendations","description":"Final AI recommendations for future meetings of this team or topic."}}},"bitrix.call.evaluationdto":{"type":"object","properties":{"efficiencyValue":{"type":"integer","format":"int64","title":"efficiencyValue","description":"Overall meeting efficiency score in the range 0..100. Computed as the share of passed criteria, including the calendar overhead penalty."},"calendar":{"type":"array","title":"calendar","description":"Calendar booking quality. Shape: { overhead: bool } — whether the meeting ran past its scheduled end time."},"criteria":{"type":"array","title":"criteria","description":"Meeting evaluation criteria map. Keys are AI-driven criterion codes (e.g. agenda_clearly_stated). Each value has shape { value: bool (passed\/failed), criteria: string (raw code, mirrors the key), thoughts: string (AI commentary in selected mentionFormat), title: string (localized) }."}}},"bitrix.crm.emailactivitydto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"entityId":{"type":"integer","format":"int64","title":"entityId"},"subject":{"type":"string","title":"subject"},"dateTime":{"type":"string","title":"dateTime"},"isIncoming":{"type":"boolean","title":"isIncoming"},"from":{"type":"string","title":"from"},"to":{"type":"array","title":"to"},"cc":{"type":"array","title":"cc"},"bcc":{"type":"array","title":"bcc"},"bindings":{"type":"array","title":"bindings"},"body":{"type":"string","title":"body"},"isBodyTruncated":{"type":"boolean","title":"isBodyTruncated"},"isHidden":{"type":"boolean","title":"isHidden"},"activityId":{"type":"integer","format":"int64","title":"activityId"},"parentActivityId":{"type":"integer","format":"int64","title":"parentActivityId"},"isSyncedToImap":{"type":"boolean","title":"isSyncedToImap"},"warnings":{"type":"array","title":"warnings"}}},"bitrix.humanresources.employeedto":{"type":"object","properties":{"userId":{"type":"integer","format":"int64","title":"userId"},"name":{"type":"string","title":"name"},"workPosition":{"type":"string","title":"workPosition"},"avatar":{"type":"string","title":"avatar"},"url":{"type":"string","title":"url"},"departments":{"type":"array","title":"departments"},"teams":{"type":"array","title":"teams"}}},"bitrix.humanresources.nodedto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"name":{"type":"string","title":"name"},"type":{"type":"string","title":"type"},"structureId":{"type":"integer","format":"int64","title":"structureId"},"parentId":{"type":"integer","format":"int64","title":"parentId"},"description":{"type":"string","title":"description"},"accessCode":{"type":"string","title":"accessCode"},"userCount":{"type":"integer","format":"int64","title":"userCount"},"colorName":{"type":"string","title":"colorName"},"xmlId":{"type":"string","title":"xmlId"},"createdAt":{"type":"string","title":"createdAt"},"updatedAt":{"type":"string","title":"updatedAt"},"members":{"type":"array","title":"members"}}},"bitrix.humanresources.nodememberdto":{"type":"object","properties":{"userId":{"type":"integer","format":"int64","title":"userId"},"name":{"type":"string","title":"name"},"workPosition":{"type":"string","title":"workPosition"},"role":{"type":"string","title":"role"},"avatar":{"type":"string","title":"avatar"},"url":{"type":"string","title":"url"}}},"bitrix.mail.mailboxdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"name":{"type":"string","title":"name"},"email":{"type":"string","title":"email"},"senderName":{"type":"string","title":"senderName"}}},"bitrix.mail.messagedto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"mailboxId":{"type":"integer","format":"int64","title":"mailboxId"},"mailboxEmail":{"type":"string","title":"mailboxEmail"},"subject":{"type":"string","title":"subject"},"from":{"type":"string","title":"from"},"to":{"type":"string","title":"to"},"cc":{"type":"string","title":"cc"},"date":{"type":"string","title":"date"},"isSeen":{"type":"boolean","title":"isSeen"},"hasAttachments":{"type":"boolean","title":"hasAttachments"},"url":{"type":"string","title":"url"},"bindings":{"type":"array","title":"bindings"},"body":{"type":"string","title":"body"}}},"bitrix.mail.recipientdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"email":{"type":"string","title":"email"},"name":{"type":"string","title":"name"}}},"bitrix.main.eventlogdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"Record ID","description":"Unique event log entry ID."},"timestampX":{"type":"string","format":"date-time","title":"Event time","description":"Event date and time."},"severity":{"type":"string","title":"Severity","description":"Event severity level (INFO, WARNING, ERROR, etc.)"},"auditTypeId":{"type":"string","title":"Event type","description":"Audit event type ID."},"moduleId":{"type":"string","title":"Module","description":"The module that produced the event."},"itemId":{"type":"string","title":"Item ID","description":"The ID of an item associated with the event."},"remoteAddr":{"type":"string","title":"IP address","description":"The IP address of a user associated with the event."},"userAgent":{"type":"string","title":"User Agent","description":"The User Agent string: the user\u0027s browser and OS."},"requestUri":{"type":"string","title":"Request URL","description":"The URL that was used to initiate the request."},"siteId":{"type":"string","title":"Site ID","description":"The ID of a site associated with the event."},"userId":{"type":"integer","format":"int64","title":"User ID","description":"The ID of a user associated with the event."},"guestId":{"type":"integer","format":"int64","title":"Guest ID","description":"The ID of a guest (i.e. a user who didn\u0027t log in)."},"description":{"type":"string","title":"Event description","description":"Detailed event description."}}},"bitrix.note.collectionitemdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"name":{"type":"string","title":"name"},"position":{"type":"integer","format":"int64","title":"position"},"policyLevel":{"type":"string","title":"policyLevel"},"createdBy":{"type":"integer","format":"int64","title":"createdBy"},"createdAt":{"type":"string","title":"createdAt"},"updatedBy":{"type":"integer","format":"int64","title":"updatedBy"},"updatedAt":{"type":"string","title":"updatedAt"}}},"bitrix.note.documentitemdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"collectionId":{"type":"integer","format":"int64","title":"collectionId"},"parentId":{"type":"integer","format":"int64","title":"parentId"},"title":{"type":"string","title":"title"},"markdown":{"type":"string","title":"markdown"},"position":{"type":"integer","format":"int64","title":"position"},"createdBy":{"type":"integer","format":"int64","title":"createdBy"},"updatedBy":{"type":"integer","format":"int64","title":"updatedBy"},"createdAt":{"type":"string","title":"createdAt"},"updatedAt":{"type":"string","title":"updatedAt"}}},"bitrix.note.documenttreeitemdto":{"type":"object","properties":{"id":{"type":"integer"},"collectionId":{"type":"integer"},"parentId":{"type":"integer","nullable":true},"title":{"type":"string"},"position":{"type":"integer"},"children":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.note.documenttreeitemdto"}}}},"bitrix.note.searchresultitemdto":{"type":"object","properties":{"documentId":{"type":"integer","format":"int64","title":"documentId"},"collectionId":{"type":"integer","format":"int64","title":"collectionId"},"title":{"type":"string","title":"title"},"score":{"type":"float","title":"score"},"snippet":{"type":"string","title":"snippet"},"sharedAccess":{"type":"boolean","title":"sharedAccess"}}},"bitrix.note.fileitemdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"documentId":{"type":"integer","format":"int64","title":"documentId"},"name":{"type":"string","title":"name"},"size":{"type":"integer","format":"int64","title":"size"},"mimeType":{"type":"string","title":"mimeType"},"assetType":{"type":"string","title":"assetType"},"assetMarkdown":{"type":"string","title":"assetMarkdown"}}},"bitrix.rest.dtofielddto":{"type":"object","properties":{"name":{"type":"string","title":"name"},"type":{"type":"string","title":"type"},"title":{"type":"string","title":"title"},"description":{"type":"string","title":"description"},"validationRules":{"type":"array","title":"validationRules"},"requiredGroups":{"type":"array","title":"requiredGroups"},"filterable":{"type":"boolean","title":"filterable"},"sortable":{"type":"boolean","title":"sortable"},"editable":{"type":"boolean","title":"editable"},"multiple":{"type":"boolean","title":"multiple"},"elementType":{"type":"string","title":"elementType"}}},"bitrix.rest.customdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"entityId":{"type":"string","title":"entityId"},"name":{"type":"string","title":"name"},"userTypeId":{"type":"string","title":"userTypeId"},"xmlId":{"type":"string","title":"xmlId"},"sort":{"type":"integer","format":"int64","title":"sort"},"isMultiple":{"type":"boolean","title":"isMultiple"},"isMandatory":{"type":"boolean","title":"isMandatory"},"showFilter":{"type":"string","title":"showFilter"},"showInList":{"type":"boolean","title":"showInList"},"editInList":{"type":"boolean","title":"editInList"},"isSearchable":{"type":"boolean","title":"isSearchable"},"settings":{"type":"array","title":"settings"},"editFormLabel":{"title":"editFormLabel"},"listColumnLabel":{"title":"listColumnLabel"},"listFilterLabel":{"title":"listFilterLabel"},"errorMessage":{"title":"errorMessage"},"helpMessage":{"title":"helpMessage"}}},"bitrix.rest.enumdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"entityId":{"type":"string","title":"entityId"},"fieldId":{"type":"integer","format":"int64","title":"fieldId"},"value":{"type":"string","title":"value"},"isDefault":{"type":"boolean","title":"isDefault"},"sort":{"type":"integer","format":"int64","title":"sort"},"xmlId":{"type":"string","title":"xmlId"}}},"bitrix.rest.scoperequestdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"appId":{"type":"integer","format":"int64","title":"appId"},"scopes":{"type":"array","title":"scopes"},"status":{"type":"string","title":"status"},"currentState":{"$ref":"#\/components\/schemas\/bitrix.rest.scoperequeststatusdto","title":"currentState"},"comment":{"type":"string","title":"comment"},"createdAt":{"type":"string","format":"date-time","title":"createdAt"},"history":{"title":"history"}}},"bitrix.rest.scoperequeststatusdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"requestId":{"type":"integer","format":"int64","title":"requestId"},"status":{"type":"string","title":"status"},"comment":{"type":"string","title":"comment"},"createdAt":{"type":"string","format":"date-time","title":"createdAt"}}},"bitrix.rest.deferredbatchdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"status":{"type":"string","title":"status"},"commands":{"type":"array","title":"commands"},"createdAt":{"type":"string","format":"date-time","title":"createdAt"},"updatedAt":{"type":"string","format":"date-time","title":"updatedAt"},"resultFileId":{"type":"integer","format":"int64","title":"resultFileId"},"errorMessage":{"type":"string","title":"errorMessage"}}},"bitrix.rest.appdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"Application inner identification"},"clientId":{"type":"string","title":"Application client ID"},"clientSecret":{"type":"string","title":"Application client secret"},"applicationToken":{"type":"string","title":"Application token (shared secret used to authenticate webhook callbacks from the portal)"},"scopes":{"type":"array","title":"Application scopes"},"title":{"type":"string","title":"Application title"},"url":{"type":"string","title":"Handler URL"},"urlInstall":{"type":"string","title":"Installation URL"},"urlSettings":{"type":"string","title":"Settings URL"},"mobile":{"type":"boolean","title":"Mobile application flag"},"version":{"type":"string","title":"Application version"},"active":{"type":"boolean","title":"Application active flag"},"installed":{"type":"boolean","title":"Application installed flag"},"dateCreate":{"type":"string","title":"Date of creation"},"dateInstall":{"type":"string","title":"Date of installation"},"attributes":{"type":"array","title":"Application external attributes"}}},"bitrix.rest.incomingwebhookdto":{"type":"object","properties":{"url":{"type":"string","title":"Webhook handler URL"},"scopes":{"type":"array","title":"Webhook scopes"},"title":{"type":"string","title":"Webhook title"},"active":{"type":"boolean","title":"Active flag"},"userId":{"type":"integer","format":"int64","title":"Owner user id"},"dateCreate":{"type":"string","title":"Date of creation"},"attributes":{"type":"array","title":"Incoming webhook external attributes"}}},"bitrix.rest.accessdto":{"type":"object","properties":{"clientId":{"type":"string","title":"Application client ID"},"codes":{"type":"array","title":"Application access codes"},"codesDetails":{"type":"array","title":"Access code details with provider and display name"}}},"bitrix.rest.embeddingdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"ID"},"userId":{"type":"integer","format":"int64","title":"User ID"},"placement":{"type":"string","title":"Placement name"},"handler":{"type":"string","title":"Placement Handler URI"},"title":{"type":"string","title":"title"},"description":{"type":"string","title":"description"},"groupName":{"type":"string","title":"groupName"},"additional":{"type":"string","title":"additional"},"options":{"type":"array","title":"options"},"languages":{"title":"languages"}}},"bitrix.rest.oauthtokendto":{"type":"object","properties":{"accessToken":{"type":"string","title":"OAuth access token"},"refreshToken":{"type":"string","title":"OAuth refresh token"},"expiresIn":{"type":"integer","format":"int64","title":"Access token lifetime in seconds"},"serverEndpoint":{"type":"string","title":"REST server endpoint"}}},"bitrix.rest.placementdto":{"type":"object","properties":{"placement":{"type":"string","title":"placement"}}},"bitrix.tasks.taskdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"title":{"type":"string","title":"title"},"description":{"type":"string","title":"description"},"creatorId":{"type":"integer","format":"int64","title":"creatorId"},"creator":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto","title":"creator"},"created":{"type":"string","format":"date-time","title":"created"},"responsibleId":{"type":"integer","format":"int64","title":"responsibleId"},"responsible":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto","title":"responsible"},"deadline":{"type":"string","format":"date-time","title":"deadline"},"needsControl":{"type":"boolean","title":"needsControl"},"startPlan":{"type":"string","format":"date-time","title":"startPlan"},"endPlan":{"type":"string","format":"date-time","title":"endPlan"},"fileIds":{"type":"array","title":"fileIds"},"checklist":{"type":"array","title":"checklist"},"groupId":{"type":"integer","format":"int64","title":"groupId"},"group":{"$ref":"#\/components\/schemas\/bitrix.tasks.groupdto","title":"group"},"stageId":{"type":"integer","format":"int64","title":"stageId"},"stage":{"$ref":"#\/components\/schemas\/bitrix.tasks.stagedto","title":"stage"},"epicId":{"type":"integer","format":"int64","title":"epicId"},"storyPoints":{"type":"integer","format":"int64","title":"storyPoints"},"flowId":{"type":"integer","format":"int64","title":"flowId"},"flow":{"$ref":"#\/components\/schemas\/bitrix.tasks.flowdto","title":"flow"},"priority":{"type":"string","title":"priority"},"status":{"type":"string","title":"status"},"statusChanged":{"type":"string","format":"date-time","title":"statusChanged"},"accomplices":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto"},"title":"accomplices"},"auditors":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto"},"title":"auditors"},"parentId":{"type":"integer","format":"int64","title":"parentId"},"parent":{"$ref":"#\/components\/schemas\/bitrix.tasks.taskdto","title":"parent"},"containsChecklist":{"type":"boolean","title":"containsChecklist"},"containsSubTasks":{"type":"boolean","title":"containsSubTasks"},"containsRelatedTasks":{"type":"boolean","title":"containsRelatedTasks"},"containsGanttLinks":{"type":"boolean","title":"containsGanttLinks"},"containsPlacements":{"type":"boolean","title":"containsPlacements"},"containsResults":{"type":"boolean","title":"containsResults"},"numberOfReminders":{"type":"integer","format":"int64","title":"numberOfReminders"},"chatId":{"type":"integer","format":"int64","title":"chatId"},"chat":{"$ref":"#\/components\/schemas\/bitrix.tasks.chatdto","title":"chat"},"plannedDuration":{"type":"integer","format":"int64","title":"plannedDuration"},"actualDuration":{"type":"integer","format":"int64","title":"actualDuration"},"durationType":{"type":"string","title":"durationType"},"started":{"type":"string","format":"date-time","title":"started"},"estimatedTime":{"type":"integer","format":"int64","title":"estimatedTime"},"replicate":{"type":"boolean","title":"replicate"},"changed":{"type":"string","format":"date-time","title":"changed"},"changedById":{"type":"integer","format":"int64","title":"changedById"},"changedBy":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto","title":"changedBy"},"statusChangedById":{"type":"integer","format":"int64","title":"statusChangedById"},"statusChangedBy":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto","title":"statusChangedBy"},"closedById":{"type":"integer","format":"int64","title":"closedById"},"closedBy":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto","title":"closedBy"},"closed":{"type":"string","format":"date-time","title":"closed"},"activity":{"type":"string","format":"date-time","title":"activity"},"guid":{"type":"string","title":"guid"},"xmlId":{"type":"string","title":"xmlId"},"exchangeId":{"type":"string","title":"exchangeId"},"exchangeModified":{"type":"string","title":"exchangeModified"},"outlookVersion":{"type":"integer","format":"int64","title":"outlookVersion"},"mark":{"type":"string","title":"mark"},"allowsChangeDeadline":{"type":"boolean","title":"allowsChangeDeadline"},"allowsTimeTracking":{"type":"boolean","title":"allowsTimeTracking"},"matchesWorkTime":{"type":"boolean","title":"matchesWorkTime"},"addInReport":{"type":"boolean","title":"addInReport"},"isMultitask":{"type":"boolean","title":"isMultitask"},"siteId":{"type":"string","title":"siteId"},"forkedByTemplateId":{"type":"integer","format":"int64","title":"forkedByTemplateId"},"forkedByTemplate":{"$ref":"#\/components\/schemas\/bitrix.tasks.templatedto","title":"forkedByTemplate"},"deadlineCount":{"type":"integer","format":"int64","title":"deadlineCount"},"declineReason":{"type":"string","title":"declineReason"},"forumTopicId":{"type":"integer","format":"int64","title":"forumTopicId"},"tags":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.tasks.tagdto"},"title":"tags"},"link":{"type":"string","title":"link"},"userFields":{"type":"array","items":{"$ref":"#\/components\/schemas\/bitrix.tasks.userfielddto"},"title":"userFields"},"rights":{"type":"array","title":"rights"},"archiveLink":{"type":"string","title":"archiveLink"},"crmItemIds":{"type":"array","title":"crmItemIds"},"crmItems":{"$ref":"#\/components\/schemas\/bitrix.tasks.crmitemdto","title":"crmItems"},"reminders":{"type":"array","title":"reminders"},"elapsedTime":{"$ref":"#\/components\/schemas\/bitrix.tasks.elapsedtimedto","title":"elapsedTime"},"requireResult":{"type":"boolean","title":"requireResult"},"matchesSubTasksTime":{"type":"boolean","title":"matchesSubTasksTime"},"autocompleteSubTasks":{"type":"boolean","title":"autocompleteSubTasks"},"allowsChangeDatePlan":{"type":"boolean","title":"allowsChangeDatePlan"},"emailId":{"type":"integer","format":"int64","title":"emailId"},"email":{"$ref":"#\/components\/schemas\/bitrix.tasks.emaildto","title":"email"},"maxDeadlineChangeDate":{"type":"string","format":"date-time","title":"maxDeadlineChangeDate"},"maxDeadlineChanges":{"type":"integer","format":"int64","title":"maxDeadlineChanges"},"requireDeadlineChangeReason":{"type":"boolean","title":"requireDeadlineChangeReason"},"inFavorite":{"type":"array","title":"inFavorite"},"inPin":{"type":"array","title":"inPin"},"inGroupPin":{"type":"array","title":"inGroupPin"},"inMute":{"type":"array","title":"inMute"},"source":{"$ref":"#\/components\/schemas\/bitrix.tasks.sourcedto","title":"source"},"dependsOn":{"type":"array","title":"dependsOn"},"scenarios":{"type":"array","title":"scenarios"}}},"bitrix.tasks.userdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"name":{"type":"string","title":"name"},"role":{"type":"string","title":"role"},"image":{"$ref":"#\/components\/schemas\/bitrix.tasks.filedto","title":"image"},"gender":{"type":"string","title":"gender"},"email":{"type":"string","title":"email"},"externalAuthId":{"type":"string","title":"externalAuthId"},"rights":{"type":"array","title":"rights"}}},"bitrix.tasks.filedto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"src":{"type":"string","title":"src"},"name":{"type":"string","title":"name"},"width":{"type":"integer","format":"int64","title":"width"},"height":{"type":"integer","format":"int64","title":"height"},"size":{"type":"integer","format":"int64","title":"size"},"subDir":{"type":"string","title":"subDir"},"contentType":{"type":"string","title":"contentType"},"file":{"type":"array","title":"file"}}},"bitrix.tasks.groupdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"name":{"type":"string","title":"name"},"image":{"$ref":"#\/components\/schemas\/bitrix.tasks.filedto","title":"image"},"type":{"type":"string","title":"type"},"isVisible":{"type":"boolean","title":"isVisible"}}},"bitrix.tasks.stagedto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"title":{"type":"string","title":"title"},"color":{"type":"string","title":"color"}}},"bitrix.tasks.flowdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"name":{"type":"string","title":"name"}}},"bitrix.tasks.chatdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"entityId":{"type":"integer","format":"int64","title":"entityId"},"entityType":{"type":"string","title":"entityType"}}},"bitrix.tasks.templatedto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"task":{"$ref":"#\/components\/schemas\/bitrix.tasks.taskdto","title":"task"},"title":{"type":"string","title":"title"},"description":{"type":"string","title":"description"},"creator":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto","title":"creator"},"responsibleCollection":{"type":"array","title":"responsibleCollection"},"deadlineAfterTs":{"type":"integer","format":"int64","title":"deadlineAfterTs"},"startDatePlanTs":{"type":"integer","format":"int64","title":"startDatePlanTs"},"endDatePlanTs":{"type":"integer","format":"int64","title":"endDatePlanTs"},"replicate":{"type":"boolean","title":"replicate"},"fileIds":{"type":"array","title":"fileIds"},"checklist":{"type":"array","title":"checklist"},"group":{"$ref":"#\/components\/schemas\/bitrix.tasks.groupdto","title":"group"},"priority":{"type":"string","title":"priority"},"accomplices":{"type":"array","title":"accomplices"},"auditors":{"type":"array","title":"auditors"},"parent":{"$ref":"#\/components\/schemas\/bitrix.tasks.templatedto","title":"parent"},"replicateParams":{"$ref":"#\/components\/schemas\/bitrix.tasks.replicateparamsdto","title":"replicateParams"}}},"bitrix.tasks.replicateparamsdto":{"type":"object","properties":{"period":{"type":"string","title":"period"},"everyDay":{"type":"string","title":"everyDay"},"workdayOnly":{"type":"string","title":"workdayOnly"},"dailyMonthInterval":{"type":"string","title":"dailyMonthInterval"},"everyWeek":{"type":"string","title":"everyWeek"},"monthlyType":{"type":"string","title":"monthlyType"},"monthlyDayNum":{"type":"string","title":"monthlyDayNum"},"monthlyMonthNum1":{"type":"string","title":"monthlyMonthNum1"},"monthlyWeekDayNum":{"type":"string","title":"monthlyWeekDayNum"},"monthlyWeekDay":{"type":"string","title":"monthlyWeekDay"},"monthlyMonthNum2":{"type":"string","title":"monthlyMonthNum2"},"yearlyType":{"type":"string","title":"yearlyType"},"yearlyDayNum":{"type":"string","title":"yearlyDayNum"},"yearlyMonth1":{"type":"string","title":"yearlyMonth1"},"yearlyWeekDayNum":{"type":"string","title":"yearlyWeekDayNum"},"yearlyWeekDay":{"type":"string","title":"yearlyWeekDay"},"yearlyMonth2":{"type":"string","title":"yearlyMonth2"},"time":{"type":"string","title":"time"},"timezoneOffset":{"type":"string","title":"timezoneOffset"},"startDate":{"type":"string","title":"startDate"},"repeatTill":{"type":"string","title":"repeatTill"},"endDate":{"type":"string","title":"endDate"},"times":{"type":"string","title":"times"}}},"bitrix.tasks.tagdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"name":{"type":"string","title":"name"},"ownerId":{"type":"integer","format":"int64","title":"ownerId"},"owner":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto","title":"owner"},"groupId":{"type":"integer","format":"int64","title":"groupId"},"group":{"$ref":"#\/components\/schemas\/bitrix.tasks.groupdto","title":"group"},"taskId":{"type":"integer","format":"int64","title":"taskId"},"task":{"$ref":"#\/components\/schemas\/bitrix.tasks.taskdto","title":"task"}}},"bitrix.tasks.userfielddto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"key":{"type":"string","title":"key"},"value":{"title":"value"}}},"bitrix.tasks.crmitemdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"type":{"type":"string","title":"type"},"title":{"type":"string","title":"title"}}},"bitrix.tasks.elapsedtimedto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"userId":{"type":"integer","format":"int64","title":"userId"},"taskId":{"type":"integer","format":"int64","title":"taskId"},"minutes":{"type":"integer","format":"int64","title":"minutes"},"seconds":{"type":"integer","format":"int64","title":"seconds"},"source":{"type":"string","title":"source"},"text":{"type":"string","title":"text"},"createdAtTs":{"type":"integer","format":"int64","title":"createdAtTs"},"startTs":{"type":"integer","format":"int64","title":"startTs"},"stopTs":{"type":"integer","format":"int64","title":"stopTs"}}},"bitrix.tasks.emaildto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"taskId":{"type":"integer","format":"int64","title":"taskId"},"mailboxId":{"type":"integer","format":"int64","title":"mailboxId"},"title":{"type":"string","title":"title"},"body":{"type":"string","title":"body"},"from":{"type":"string","title":"from"},"dateTs":{"type":"integer","format":"int64","title":"dateTs"},"link":{"type":"string","title":"link"}}},"bitrix.tasks.sourcedto":{"type":"object","properties":{"type":{"type":"string","title":"type"},"data":{"type":"array","title":"data"}}},"bitrix.tasks.messagedto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"taskId":{"type":"integer","format":"int64","title":"taskId"},"text":{"type":"string","title":"text"}}},"bitrix.tasks.resultdto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"taskId":{"type":"integer","format":"int64","title":"taskId"},"text":{"type":"string","title":"text"},"authorId":{"type":"integer","format":"int64","title":"authorId"},"author":{"$ref":"#\/components\/schemas\/bitrix.tasks.userdto","title":"author"},"createdAt":{"type":"string","format":"date-time","title":"createdAt"},"updatedAt":{"type":"string","format":"date-time","title":"updatedAt"},"status":{"type":"string","title":"status"},"fileIds":{"type":"array","title":"fileIds"},"rights":{"type":"array","title":"rights"},"messageId":{"type":"integer","format":"int64","title":"messageId"}}},"bitrix.timeman.recorddto":{"type":"object","properties":{"id":{"type":"integer","format":"int64","title":"id"},"userId":{"type":"integer","format":"int64","title":"userId"},"startTime":{"type":"string","format":"date-time","title":"startTime"},"endTime":{"type":"string","format":"date-time","title":"endTime"},"duration":{"type":"integer","format":"int64","title":"duration"},"breakLength":{"type":"integer","format":"int64","title":"breakLength"},"state":{"$ref":"#\/components\/schemas\/bitrix.timeman.recordstatedto","title":"state"},"isApproved":{"type":"boolean","title":"isApproved"}}},"bitrix.timeman.recordstatedto":{"type":"object","properties":{"status":{"type":"string","title":"status"},"recommendedCloseTime":{"type":"integer","format":"int64","title":"recommendedCloseTime"}}},"bitrix.vibecodeconnector.catalogitemdto":{"type":"object","properties":{"catalogItemId":{"type":"integer","format":"int64","title":"Catalog item identifier"},"title":{"type":"string","title":"Title"},"type":{"type":"string","title":"Item type"},"accessType":{"type":"string","title":"Access type"},"description":{"type":"string","title":"Description"},"editUrl":{"type":"string","title":"Edit URL"},"viewUrl":{"type":"string","title":"View URL"},"iconUrl":{"type":"string","title":"Icon URL"},"chatId":{"type":"integer","format":"int64","title":"Chat identifier"},"externalId":{"type":"string","title":"External identifier"},"ownerId":{"type":"integer","format":"int64","title":"Owner user identifier"},"color":{"type":"string","title":"Color"},"createdAt":{"type":"string","title":"Date of creation (ISO-8601)"},"updatedAt":{"type":"string","title":"Date of last update (ISO-8601)"}}},"bitrix.vibecodeconnector.accessdto":{"type":"object","properties":{"catalogItemId":{"type":"integer","format":"int64","title":"Catalog item identifier"},"accessCodes":{"type":"array","title":"Catalog item access codes"}}}}}} \ No newline at end of file diff --git a/docs/testing.md b/docs/testing.md index ad30f84f..e6b90e34 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -302,6 +302,7 @@ skip_violations: | `make test-integration-catalog-document-annotations` | Warehouse accounting document result annotations | | `make test-integration-catalog-document-element` | Warehouse accounting document line items | | `make test-integration-catalog-document-element-annotations` | Warehouse accounting document line item result annotations | +| `make test-integration-catalog-rounding-rule` | Price rounding rules | ### Tests — integration (Tasks) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 193fc046..553f1650 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -584,6 +584,9 @@ ./tests/Integration/Services/Catalog/DocumentElement/Result/DocumentElementItemResultTest.php + + ./tests/Integration/Services/Catalog/RoundingRule/ + diff --git a/rector.php b/rector.php index 0564321f..77f8ba1c 100644 --- a/rector.php +++ b/rector.php @@ -100,7 +100,7 @@ ->withSets( [ LevelSetList::UP_TO_PHP_84, - PHPUnitSetList::PHPUNIT_110 + PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES ] ) ->withImportNames( @@ -142,7 +142,6 @@ \Rector\Naming\Rector\Foreach_\RenameForeachValueVariableToMatchExprVariableRector::class, \Rector\Naming\Rector\Foreach_\RenameForeachValueVariableToMatchMethodCallReturnTypeRector::class, \Rector\Php83\Rector\ClassConst\AddTypeToConstRector::class, - \Rector\Php84\Rector\Class_\DeprecatedAnnotationToDeprecatedAttributeRector::class, \Rector\Php84\Rector\Foreach_\ForeachToArrayAnyRector::class, \Rector\Php84\Rector\Foreach_\ForeachToArrayFindRector::class, \Rector\Php84\Rector\MethodCall\NewMethodCallWithoutParenthesesRector::class, diff --git a/src/Services/Catalog/CatalogServiceBuilder.php b/src/Services/Catalog/CatalogServiceBuilder.php index 01219dae..9decdd9f 100644 --- a/src/Services/Catalog/CatalogServiceBuilder.php +++ b/src/Services/Catalog/CatalogServiceBuilder.php @@ -290,4 +290,20 @@ public function documentElement(): Catalog\DocumentElement\Service\DocumentEleme return $this->serviceCache[__METHOD__]; } + + public function roundingRule(): Catalog\RoundingRule\Service\RoundingRule + { + if (!isset($this->serviceCache[__METHOD__])) { + $this->serviceCache[__METHOD__] = new Catalog\RoundingRule\Service\RoundingRule( + new Catalog\RoundingRule\Service\Batch( + new Catalog\RoundingRule\Batch($this->core, $this->log), + $this->log + ), + $this->core, + $this->log + ); + } + + return $this->serviceCache[__METHOD__]; + } } diff --git a/src/Services/Catalog/RoundingRule/Batch.php b/src/Services/Catalog/RoundingRule/Batch.php new file mode 100644 index 00000000..516b40a4 --- /dev/null +++ b/src/Services/Catalog/RoundingRule/Batch.php @@ -0,0 +1,108 @@ + + * + * For the full copyright and license information, please view the MIT-LICENSE.txt + * file that was distributed with this source code. + */ + +declare(strict_types=1); + +namespace Bitrix24\SDK\Services\Catalog\RoundingRule; + +use Bitrix24\SDK\Core\Exceptions\BaseException; +use Bitrix24\SDK\Core\Exceptions\InvalidArgumentException; +use Bitrix24\SDK\Core\Response\DTO\ResponseData; +use Generator; + +/** + * Class Batch + * + * Overrides base Batch to handle parameter naming differences in catalog.roundingRule.* REST methods: + * - delete uses lowercase 'id' instead of 'ID' + * + * @see https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-delete.html + * @see https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-list.html + */ +class Batch extends \Bitrix24\SDK\Core\Batch +{ + /** + * Determines the ID key — lowercase 'id' for catalog rounding rule + */ + #[\Override] + protected function determineKeyId(string $apiMethod, ?array $additionalParameters): string + { + return 'id'; + } + + /** + * Delete entity items with batch call using lowercase 'id' parameter + * + * @param int[] $entityItemId + * @param array|null $additionalParameters + * + * @return Generator|ResponseData[] + * @throws BaseException + */ + #[\Override] + public function deleteEntityItems( + string $apiMethod, + array $entityItemId, + ?array $additionalParameters = null + ): Generator { + $this->logger->debug( + 'deleteEntityItems.start', + [ + 'apiMethod' => $apiMethod, + 'entityItems' => $entityItemId, + 'additionalParameters' => $additionalParameters, + ] + ); + + try { + $this->clearCommands(); + foreach ($entityItemId as $cnt => $itemId) { + if (!is_int($itemId)) { + throw new InvalidArgumentException( + sprintf( + 'invalid type «%s» of rounding rule id «%s» at position %s, rounding rule id must be integer type', + gettype($itemId), + $itemId, + $cnt + ) + ); + } + + $this->registerCommand($apiMethod, ['id' => $itemId]); + } + + foreach ($this->getTraversable(true) as $cnt => $deletedItemResult) { + yield $cnt => $deletedItemResult; + } + } catch (InvalidArgumentException $exception) { + $errorMessage = sprintf('batch delete rounding rule items: %s', $exception->getMessage()); + $this->logger->error( + $errorMessage, + [ + 'trace' => $exception->getTrace(), + ] + ); + throw $exception; + } catch (\Throwable $exception) { + $errorMessage = sprintf('batch delete rounding rule items: %s', $exception->getMessage()); + $this->logger->error( + $errorMessage, + [ + 'trace' => $exception->getTrace(), + ] + ); + + throw new BaseException($errorMessage, $exception->getCode(), $exception); + } + + $this->logger->debug('deleteEntityItems.finish'); + } +} diff --git a/src/Services/Catalog/RoundingRule/Result/RoundingRuleAddedBatchResult.php b/src/Services/Catalog/RoundingRule/Result/RoundingRuleAddedBatchResult.php new file mode 100644 index 00000000..ab5c94ca --- /dev/null +++ b/src/Services/Catalog/RoundingRule/Result/RoundingRuleAddedBatchResult.php @@ -0,0 +1,33 @@ + + * + * For the full copyright and license information, please view the MIT-LICENSE.txt + * file that was distributed with this source code. + */ + +declare(strict_types=1); + +namespace Bitrix24\SDK\Services\Catalog\RoundingRule\Result; + +use Bitrix24\SDK\Core\Response\DTO\ResponseData; + +class RoundingRuleAddedBatchResult +{ + public function __construct(private readonly ResponseData $responseData) + { + } + + public function getResponseData(): ResponseData + { + return $this->responseData; + } + + public function roundingRule(): RoundingRuleItemResult + { + return new RoundingRuleItemResult($this->responseData->getResult()['roundingRule']); + } +} diff --git a/src/Services/Catalog/RoundingRule/Result/RoundingRuleFieldsResult.php b/src/Services/Catalog/RoundingRule/Result/RoundingRuleFieldsResult.php new file mode 100644 index 00000000..4196d56c --- /dev/null +++ b/src/Services/Catalog/RoundingRule/Result/RoundingRuleFieldsResult.php @@ -0,0 +1,29 @@ + + * + * For the full copyright and license information, please view the MIT-LICENSE.txt + * file that was distributed with this source code. + */ + +declare(strict_types=1); + +namespace Bitrix24\SDK\Services\Catalog\RoundingRule\Result; + +use Bitrix24\SDK\Core\Exceptions\BaseException; +use Bitrix24\SDK\Core\Result\AbstractResult; + +class RoundingRuleFieldsResult extends AbstractResult +{ + /** + * @return array> + * @throws BaseException + */ + public function getFieldsDescription(): array + { + return $this->getCoreResponse()->getResponseData()->getResult()['roundingRule']; + } +} diff --git a/src/Services/Catalog/RoundingRule/Result/RoundingRuleItemResult.php b/src/Services/Catalog/RoundingRule/Result/RoundingRuleItemResult.php new file mode 100644 index 00000000..3d575942 --- /dev/null +++ b/src/Services/Catalog/RoundingRule/Result/RoundingRuleItemResult.php @@ -0,0 +1,32 @@ + + * + * For the full copyright and license information, please view the MIT-LICENSE.txt + * file that was distributed with this source code. + */ + +declare(strict_types=1); + +namespace Bitrix24\SDK\Services\Catalog\RoundingRule\Result; + +use Bitrix24\SDK\Core\Result\AbstractAnnotatedItem; +use Carbon\CarbonImmutable; + +/** + * @property-read int $id + * @property-read int $catalogGroupId + * @property-read float $price + * @property-read int $roundType + * @property-read float $roundPrecision + * @property-read int|null $createdBy + * @property-read int|null $modifiedBy + * @property-read CarbonImmutable|null $dateCreate + * @property-read CarbonImmutable|null $dateModify + */ +class RoundingRuleItemResult extends AbstractAnnotatedItem +{ +} diff --git a/src/Services/Catalog/RoundingRule/Result/RoundingRuleResult.php b/src/Services/Catalog/RoundingRule/Result/RoundingRuleResult.php new file mode 100644 index 00000000..41556957 --- /dev/null +++ b/src/Services/Catalog/RoundingRule/Result/RoundingRuleResult.php @@ -0,0 +1,28 @@ + + * + * For the full copyright and license information, please view the MIT-LICENSE.txt + * file that was distributed with this source code. + */ + +declare(strict_types=1); + +namespace Bitrix24\SDK\Services\Catalog\RoundingRule\Result; + +use Bitrix24\SDK\Core\Exceptions\BaseException; +use Bitrix24\SDK\Core\Result\AbstractResult; + +class RoundingRuleResult extends AbstractResult +{ + /** + * @throws BaseException + */ + public function roundingRule(): RoundingRuleItemResult + { + return new RoundingRuleItemResult($this->getCoreResponse()->getResponseData()->getResult()['roundingRule']); + } +} diff --git a/src/Services/Catalog/RoundingRule/Result/RoundingRuleUpdatedBatchResult.php b/src/Services/Catalog/RoundingRule/Result/RoundingRuleUpdatedBatchResult.php new file mode 100644 index 00000000..e9862046 --- /dev/null +++ b/src/Services/Catalog/RoundingRule/Result/RoundingRuleUpdatedBatchResult.php @@ -0,0 +1,33 @@ + + * + * For the full copyright and license information, please view the MIT-LICENSE.txt + * file that was distributed with this source code. + */ + +declare(strict_types=1); + +namespace Bitrix24\SDK\Services\Catalog\RoundingRule\Result; + +use Bitrix24\SDK\Core\Response\DTO\ResponseData; + +class RoundingRuleUpdatedBatchResult +{ + public function __construct(private readonly ResponseData $responseData) + { + } + + public function getResponseData(): ResponseData + { + return $this->responseData; + } + + public function roundingRule(): RoundingRuleItemResult + { + return new RoundingRuleItemResult($this->responseData->getResult()['roundingRule']); + } +} diff --git a/src/Services/Catalog/RoundingRule/Result/RoundingRulesResult.php b/src/Services/Catalog/RoundingRule/Result/RoundingRulesResult.php new file mode 100644 index 00000000..78b7d092 --- /dev/null +++ b/src/Services/Catalog/RoundingRule/Result/RoundingRulesResult.php @@ -0,0 +1,34 @@ + + * + * For the full copyright and license information, please view the MIT-LICENSE.txt + * file that was distributed with this source code. + */ + +declare(strict_types=1); + +namespace Bitrix24\SDK\Services\Catalog\RoundingRule\Result; + +use Bitrix24\SDK\Core\Exceptions\BaseException; +use Bitrix24\SDK\Core\Result\AbstractResult; + +class RoundingRulesResult extends AbstractResult +{ + /** + * @return RoundingRuleItemResult[] + * @throws BaseException + */ + public function getRoundingRules(): array + { + $result = $this->getCoreResponse()->getResponseData()->getResult(); + + return array_map( + static fn (array $item): RoundingRuleItemResult => new RoundingRuleItemResult($item), + $result['roundingRules'] ?? [] + ); + } +} diff --git a/src/Services/Catalog/RoundingRule/Service/Batch.php b/src/Services/Catalog/RoundingRule/Service/Batch.php new file mode 100644 index 00000000..30d311fa --- /dev/null +++ b/src/Services/Catalog/RoundingRule/Service/Batch.php @@ -0,0 +1,103 @@ + + * + * For the full copyright and license information, please view the MIT-LICENSE.txt + * file that was distributed with this source code. + */ + +declare(strict_types=1); + +namespace Bitrix24\SDK\Services\Catalog\RoundingRule\Service; + +use Bitrix24\SDK\Attributes\ApiBatchMethodMetadata; +use Bitrix24\SDK\Attributes\ApiBatchServiceMetadata; +use Bitrix24\SDK\Core\Credentials\Scope; +use Bitrix24\SDK\Core\Exceptions\BaseException; +use Bitrix24\SDK\Core\Result\DeletedItemBatchResult; +use Bitrix24\SDK\Services\Catalog\RoundingRule; +use Bitrix24\SDK\Services\Catalog\RoundingRule\Result\RoundingRuleAddedBatchResult; +use Bitrix24\SDK\Services\Catalog\RoundingRule\Result\RoundingRuleUpdatedBatchResult; +use Generator; +use Psr\Log\LoggerInterface; + +#[ApiBatchServiceMetadata(new Scope(['catalog']))] +class Batch +{ + public function __construct(protected RoundingRule\Batch $batch, protected LoggerInterface $log) + { + } + + /** + * Batch adding price rounding rules + * + * @param array $roundingRules + * + * @return Generator + * @throws BaseException + */ + #[ApiBatchMethodMetadata( + 'catalog.roundingRule.add', + 'https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-add.html', + 'Batch adding price rounding rules' + )] + public function add(array $roundingRules): Generator + { + $items = []; + foreach ($roundingRules as $roundingRule) { + $items[] = ['fields' => $roundingRule]; + } + + foreach ($this->batch->addEntityItems('catalog.roundingRule.add', $items) as $key => $item) { + yield $key => new RoundingRuleAddedBatchResult($item); + } + } + + /** + * Batch delete price rounding rules + * + * @param int[] $roundingRuleId + * + * @return Generator + * @throws BaseException + */ + #[ApiBatchMethodMetadata( + 'catalog.roundingRule.delete', + 'https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-delete.html', + 'Batch delete price rounding rules' + )] + public function delete(array $roundingRuleId): Generator + { + foreach ($this->batch->deleteEntityItems('catalog.roundingRule.delete', $roundingRuleId) as $key => $item) { + yield $key => new DeletedItemBatchResult($item); + } + } + + /** + * Batch update price rounding rules + * + * @param array $roundingRules keyed by rounding rule id + * + * @return Generator + * @throws BaseException + */ + #[ApiBatchMethodMetadata( + 'catalog.roundingRule.update', + 'https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-update.html', + 'Batch update price rounding rules' + )] + public function update(array $roundingRules): Generator + { + $items = []; + foreach ($roundingRules as $id => $roundingRule) { + $items[$id] = ['fields' => $roundingRule]; + } + + foreach ($this->batch->updateEntityItems('catalog.roundingRule.update', $items) as $key => $item) { + yield $key => new RoundingRuleUpdatedBatchResult($item); + } + } +} diff --git a/src/Services/Catalog/RoundingRule/Service/RoundingRule.php b/src/Services/Catalog/RoundingRule/Service/RoundingRule.php new file mode 100644 index 00000000..28466ea3 --- /dev/null +++ b/src/Services/Catalog/RoundingRule/Service/RoundingRule.php @@ -0,0 +1,149 @@ + + * + * For the full copyright and license information, please view the MIT-LICENSE.txt + * file that was distributed with this source code. + */ + +declare(strict_types=1); + +namespace Bitrix24\SDK\Services\Catalog\RoundingRule\Service; + +use Bitrix24\SDK\Attributes\ApiEndpointMetadata; +use Bitrix24\SDK\Attributes\ApiServiceMetadata; +use Bitrix24\SDK\Core\Contracts\CoreInterface; +use Bitrix24\SDK\Core\Credentials\Scope; +use Bitrix24\SDK\Core\Exceptions\BaseException; +use Bitrix24\SDK\Core\Exceptions\TransportException; +use Bitrix24\SDK\Core\Result\DeletedItemResult; +use Bitrix24\SDK\Services\AbstractService; +use Bitrix24\SDK\Services\Catalog\RoundingRule\Result\RoundingRuleFieldsResult; +use Bitrix24\SDK\Services\Catalog\RoundingRule\Result\RoundingRuleResult; +use Bitrix24\SDK\Services\Catalog\RoundingRule\Result\RoundingRulesResult; +use Psr\Log\LoggerInterface; + +#[ApiServiceMetadata(new Scope(['catalog']))] +class RoundingRule extends AbstractService +{ + public function __construct(public Batch $batch, CoreInterface $core, LoggerInterface $logger) + { + parent::__construct($core, $logger); + } + + /** + * Adds a new price rounding rule + * + * @link https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-add.html + * + * @throws BaseException + * @throws TransportException + */ + #[ApiEndpointMetadata( + 'catalog.roundingRule.add', + 'https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-add.html', + 'Adds a new price rounding rule' + )] + public function add(array $fields): RoundingRuleResult + { + return new RoundingRuleResult($this->core->call('catalog.roundingRule.add', ['fields' => $fields])); + } + + /** + * Updates a price rounding rule by its identifier + * + * @link https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-update.html + * + * @throws BaseException + * @throws TransportException + */ + #[ApiEndpointMetadata( + 'catalog.roundingRule.update', + 'https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-update.html', + 'Updates a price rounding rule by its identifier' + )] + public function update(int $id, array $fields): RoundingRuleResult + { + return new RoundingRuleResult($this->core->call('catalog.roundingRule.update', ['id' => $id, 'fields' => $fields])); + } + + /** + * Returns price rounding rule information by identifier + * + * @link https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-get.html + * + * @throws BaseException + * @throws TransportException + */ + #[ApiEndpointMetadata( + 'catalog.roundingRule.get', + 'https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-get.html', + 'Returns price rounding rule information by identifier' + )] + public function get(int $id): RoundingRuleResult + { + return new RoundingRuleResult($this->core->call('catalog.roundingRule.get', ['id' => $id])); + } + + /** + * Returns a list of price rounding rules by filter + * + * @link https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-list.html + * + * @throws BaseException + * @throws TransportException + */ + #[ApiEndpointMetadata( + 'catalog.roundingRule.list', + 'https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-list.html', + 'Returns a list of price rounding rules by filter' + )] + public function list(array $select = [], array $filter = [], array $order = []): RoundingRulesResult + { + return new RoundingRulesResult( + $this->core->call( + 'catalog.roundingRule.list', + ['select' => $select, 'filter' => $filter, 'order' => $order] + ) + ); + } + + /** + * Deletes a price rounding rule by identifier + * + * @link https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-delete.html + * + * @throws BaseException + * @throws TransportException + */ + #[ApiEndpointMetadata( + 'catalog.roundingRule.delete', + 'https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-delete.html', + 'Deletes a price rounding rule by identifier' + )] + public function delete(int $id): DeletedItemResult + { + return new DeletedItemResult($this->core->call('catalog.roundingRule.delete', ['id' => $id])); + } + + /** + * Returns the fields of a price rounding rule + * + * @link https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-get-fields.html + * + * @throws BaseException + * @throws TransportException + */ + #[ApiEndpointMetadata( + 'catalog.roundingRule.getFields', + 'https://apidocs.bitrix24.com/api-reference/catalog/rounding-rule/catalog-rounding-rule-get-fields.html', + 'Returns the fields of a price rounding rule' + )] + public function getFields(): RoundingRuleFieldsResult + { + return new RoundingRuleFieldsResult($this->core->call('catalog.roundingRule.getFields')); + } +} diff --git a/tests/Integration/Services/Catalog/RoundingRule/Result/RoundingRuleItemResultTest.php b/tests/Integration/Services/Catalog/RoundingRule/Result/RoundingRuleItemResultTest.php new file mode 100644 index 00000000..2786944c --- /dev/null +++ b/tests/Integration/Services/Catalog/RoundingRule/Result/RoundingRuleItemResultTest.php @@ -0,0 +1,72 @@ + + * + * For the full copyright and license information, please view the MIT-LICENSE.txt + * file that was distributed with this source code. + */ + +declare(strict_types=1); + +namespace Bitrix24\SDK\Tests\Integration\Services\Catalog\RoundingRule\Result; + +use Bitrix24\SDK\Services\Catalog\RoundingRule\Result\RoundingRuleItemResult; +use Bitrix24\SDK\Services\Catalog\RoundingRule\Service\RoundingRule; +use Bitrix24\SDK\Tests\CustomAssertions\CustomBitrix24Assertions; +use Bitrix24\SDK\Tests\Integration\Factory; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\Test; +use PHPUnit\Framework\Attributes\TestDox; +use PHPUnit\Framework\TestCase; + +#[CoversClass(RoundingRuleItemResult::class)] +class RoundingRuleItemResultTest extends TestCase +{ + use CustomBitrix24Assertions; + + private RoundingRule $roundingRuleService; + + private int $roundingRuleId; + + #[\Override] + protected function setUp(): void + { + $this->roundingRuleService = Factory::getServiceBuilder()->getCatalogScope()->roundingRule(); + + $priceTypeService = Factory::getServiceBuilder()->getCatalogScope()->priceType(); + $basePriceTypes = $priceTypeService->list([], ['base' => 'Y'])->getPriceTypes(); + $catalogGroupId = $basePriceTypes[0]->id; + + $this->roundingRuleId = $this->roundingRuleService->add([ + 'catalogGroupId' => $catalogGroupId, + 'price' => 1000, + 'roundType' => 4, + 'roundPrecision' => 100, + ])->roundingRule()->id; + } + + #[\Override] + protected function tearDown(): void + { + $this->roundingRuleService->delete($this->roundingRuleId); + } + + #[Test] + #[TestDox('all fields in RoundingRuleItemResult are annotated in phpdoc and match with raw api response')] + public function testAllFieldsAreAnnotated(): void + { + $rawItem = $this->roundingRuleService->get($this->roundingRuleId)->getCoreResponse()->getResponseData()->getResult()['roundingRule']; + $this->assertBitrix24AllResultItemFieldsAnnotated(array_keys($rawItem), RoundingRuleItemResult::class); + } + + #[Test] + #[TestDox('all fields in RoundingRuleItemResult have valid type casting in magic getters')] + public function testAllFieldsHasValidTypeCastingInMagicGetters(): void + { + $roundingRuleItemResult = $this->roundingRuleService->get($this->roundingRuleId)->roundingRule(); + $this->assertBitrix24ResultItemFieldsTypeCastMatchAnnotations($roundingRuleItemResult, RoundingRuleItemResult::class); + } +} diff --git a/tests/Integration/Services/Catalog/RoundingRule/Service/BatchTest.php b/tests/Integration/Services/Catalog/RoundingRule/Service/BatchTest.php new file mode 100644 index 00000000..ae625509 --- /dev/null +++ b/tests/Integration/Services/Catalog/RoundingRule/Service/BatchTest.php @@ -0,0 +1,80 @@ + + * + * For the full copyright and license information, please view the MIT-LICENSE.txt + * file that was distributed with this source code. + */ + +declare(strict_types=1); + +namespace Bitrix24\SDK\Tests\Integration\Services\Catalog\RoundingRule\Service; + +use Bitrix24\SDK\Core\Exceptions\BaseException; +use Bitrix24\SDK\Core\Exceptions\TransportException; +use Bitrix24\SDK\Services\Catalog\PriceType\Service\PriceType; +use Bitrix24\SDK\Services\Catalog\RoundingRule\Service\Batch; +use Bitrix24\SDK\Services\Catalog\RoundingRule\Service\RoundingRule; +use Bitrix24\SDK\Tests\Integration\Factory; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\TestDox; +use PHPUnit\Framework\TestCase; + +#[CoversClass(Batch::class)] +class BatchTest extends TestCase +{ + private RoundingRule $roundingRuleService; + + private int $catalogGroupId; + + #[\Override] + protected function setUp(): void + { + $this->roundingRuleService = Factory::getServiceBuilder()->getCatalogScope()->roundingRule(); + + $priceTypeService = Factory::getServiceBuilder()->getCatalogScope()->priceType(); + $basePriceTypes = $priceTypeService->list([], ['base' => 'Y'])->getPriceTypes(); + $this->catalogGroupId = $basePriceTypes[0]->id; + } + + /** + * @throws BaseException + * @throws TransportException + */ + #[TestDox('test Batch::add, Batch::update, Batch::delete')] + public function testAddUpdateDelete(): void + { + $addedIds = []; + foreach ($this->roundingRuleService->batch->add([ + ['catalogGroupId' => $this->catalogGroupId, 'price' => 1000, 'roundType' => 4, 'roundPrecision' => 100], + ]) as $addedItemResult) { + $addedIds[] = $addedItemResult->roundingRule()->id; + } + + $this->assertCount(1, $addedIds); + + $updatePayload = []; + foreach ($addedIds as $id) { + $updatePayload[$id] = ['catalogGroupId' => $this->catalogGroupId, 'price' => 1500, 'roundType' => 2, 'roundPrecision' => 10]; + } + + $updatedCount = 0; + foreach ($this->roundingRuleService->batch->update($updatePayload) as $updatedItemResult) { + $this->assertSame(2, $updatedItemResult->roundingRule()->roundType); + $updatedCount++; + } + + $this->assertSame(1, $updatedCount); + + $deletedCount = 0; + foreach ($this->roundingRuleService->batch->delete($addedIds) as $deletedItemResult) { + $this->assertTrue($deletedItemResult->isSuccess()); + $deletedCount++; + } + + $this->assertSame(1, $deletedCount); + } +} diff --git a/tests/Integration/Services/Catalog/RoundingRule/Service/RoundingRuleTest.php b/tests/Integration/Services/Catalog/RoundingRule/Service/RoundingRuleTest.php new file mode 100644 index 00000000..c12077b0 --- /dev/null +++ b/tests/Integration/Services/Catalog/RoundingRule/Service/RoundingRuleTest.php @@ -0,0 +1,122 @@ + + * + * For the full copyright and license information, please view the MIT-LICENSE.txt + * file that was distributed with this source code. + */ + +declare(strict_types=1); + +namespace Bitrix24\SDK\Tests\Integration\Services\Catalog\RoundingRule\Service; + +use Bitrix24\SDK\Core\Exceptions\BaseException; +use Bitrix24\SDK\Core\Exceptions\TransportException; +use Bitrix24\SDK\Services\Catalog\PriceType\Service\PriceType; +use Bitrix24\SDK\Services\Catalog\RoundingRule\Service\RoundingRule; +use Bitrix24\SDK\Tests\Integration\Factory; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\TestDox; +use PHPUnit\Framework\TestCase; + +#[CoversClass(RoundingRule::class)] +class RoundingRuleTest extends TestCase +{ + private RoundingRule $roundingRuleService; + + private PriceType $priceTypeService; + + private int $catalogGroupId; + + #[\Override] + protected function setUp(): void + { + $this->roundingRuleService = Factory::getServiceBuilder()->getCatalogScope()->roundingRule(); + $this->priceTypeService = Factory::getServiceBuilder()->getCatalogScope()->priceType(); + + $basePriceTypes = $this->priceTypeService->list([], ['base' => 'Y'])->getPriceTypes(); + $this->catalogGroupId = $basePriceTypes[0]->id; + } + + /** + * @throws BaseException + * @throws TransportException + */ + #[TestDox('test RoundingRule::add, RoundingRule::get, RoundingRule::delete')] + public function testAddGetDelete(): void + { + $addResult = $this->roundingRuleService->add([ + 'catalogGroupId' => $this->catalogGroupId, + 'price' => 1000, + 'roundType' => 4, + 'roundPrecision' => 100, + ]); + $roundingRuleId = $addResult->roundingRule()->id; + $this->assertSame($this->catalogGroupId, $addResult->roundingRule()->catalogGroupId); + $this->assertSame(4, $addResult->roundingRule()->roundType); + + $getResult = $this->roundingRuleService->get($roundingRuleId); + $this->assertSame($roundingRuleId, $getResult->roundingRule()->id); + + $this->assertTrue($this->roundingRuleService->delete($roundingRuleId)->isSuccess()); + } + + /** + * @throws BaseException + * @throws TransportException + */ + #[TestDox('test RoundingRule::update')] + public function testUpdate(): void + { + $roundingRuleId = $this->roundingRuleService->add([ + 'catalogGroupId' => $this->catalogGroupId, + 'price' => 1000, + 'roundType' => 4, + 'roundPrecision' => 100, + ])->roundingRule()->id; + + $updateResult = $this->roundingRuleService->update($roundingRuleId, [ + 'catalogGroupId' => $this->catalogGroupId, + 'price' => 1500, + 'roundType' => 2, + 'roundPrecision' => 10, + ]); + $this->assertSame(2, $updateResult->roundingRule()->roundType); + $this->assertSame(10.0, $updateResult->roundingRule()->roundPrecision); + + $this->roundingRuleService->delete($roundingRuleId); + } + + /** + * @throws BaseException + * @throws TransportException + */ + #[TestDox('test RoundingRule::list')] + public function testList(): void + { + $roundingRuleId = $this->roundingRuleService->add([ + 'catalogGroupId' => $this->catalogGroupId, + 'price' => 1000, + 'roundType' => 4, + 'roundPrecision' => 100, + ])->roundingRule()->id; + + $listResult = $this->roundingRuleService->list([], ['id' => $roundingRuleId]); + $this->assertCount(1, $listResult->getRoundingRules()); + + $this->roundingRuleService->delete($roundingRuleId); + } + + /** + * @throws BaseException + * @throws TransportException + */ + #[TestDox('test RoundingRule::getFields')] + public function testGetFields(): void + { + $this->assertIsArray($this->roundingRuleService->getFields()->getFieldsDescription()); + } +} diff --git a/tests/Unit/Services/Catalog/RoundingRule/Service/RoundingRuleTest.php b/tests/Unit/Services/Catalog/RoundingRule/Service/RoundingRuleTest.php new file mode 100644 index 00000000..f8161f2c --- /dev/null +++ b/tests/Unit/Services/Catalog/RoundingRule/Service/RoundingRuleTest.php @@ -0,0 +1,99 @@ +mockCore('catalog.roundingRule.add', [ + 'fields' => ['catalogGroupId' => 1, 'price' => 1000.0, 'roundType' => 4, 'roundPrecision' => 100.0], + ]); + + self::assertInstanceOf( + RoundingRuleResult::class, + $this->makeService($core)->add(['catalogGroupId' => 1, 'price' => 1000.0, 'roundType' => 4, 'roundPrecision' => 100.0]) + ); + } + + public function testUpdateBuildsParameters(): void + { + $core = $this->mockCore('catalog.roundingRule.update', [ + 'id' => 2, + 'fields' => ['catalogGroupId' => 1, 'price' => 1500.0, 'roundType' => 2, 'roundPrecision' => 10.0], + ]); + + self::assertInstanceOf( + RoundingRuleResult::class, + $this->makeService($core)->update(2, ['catalogGroupId' => 1, 'price' => 1500.0, 'roundType' => 2, 'roundPrecision' => 10.0]) + ); + } + + public function testGetBuildsParameters(): void + { + $core = $this->mockCore('catalog.roundingRule.get', ['id' => 1]); + + self::assertInstanceOf(RoundingRuleResult::class, $this->makeService($core)->get(1)); + } + + public function testListBuildsParameters(): void + { + $core = $this->mockCore('catalog.roundingRule.list', [ + 'select' => ['id', 'price'], + 'filter' => ['modifiedBy' => 1], + 'order' => ['id' => 'ASC'], + ]); + + self::assertInstanceOf( + RoundingRulesResult::class, + $this->makeService($core)->list(['id', 'price'], ['modifiedBy' => 1], ['id' => 'ASC']) + ); + } + + public function testDeleteBuildsParameters(): void + { + $core = $this->mockCore('catalog.roundingRule.delete', ['id' => 2]); + + self::assertInstanceOf(DeletedItemResult::class, $this->makeService($core)->delete(2)); + } + + public function testGetFieldsBuildsParameters(): void + { + $core = $this->mockCore('catalog.roundingRule.getFields', []); + + self::assertInstanceOf(RoundingRuleFieldsResult::class, $this->makeService($core)->getFields()); + } + + private function makeService(CoreInterface $core): RoundingRule + { + return new RoundingRule(new Batch(new RoundingRuleBatch($core, new NullLogger()), new NullLogger()), $core, new NullLogger()); + } + + private function mockCore(string $method, array $parameters): CoreInterface + { + $response = $this->createStub(Response::class); + $core = $this->createMock(CoreInterface::class); + $core->expects($this->once()) + ->method('call') + ->with($method, $parameters) + ->willReturn($response); + + return $core; + } +}