mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-05-31 23:20:02 +02:00
54 lines
1.4 KiB
Plaintext
Vendored
54 lines
1.4 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 4
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Delete calendar
|
|
Deletes an existing calendar
|
|
|
|
|
|
|
|
`Function DeleteCalendar(Val URL, Val CalendarID, Val OwnerID, Val Type, Val Token = "") Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| URL | --url | String | ✔ | URL of webhook or a Bitrix24 domain, when token used |
|
|
| CalendarID | --calendar | String, Number | ✔ | Calendar ID |
|
|
| OwnerID | --owner | String, Number | ✔ | Calendar owner ID |
|
|
| Type | --type | String | ✔ | Calendar type: user, group |
|
|
| Token | --token | String | ✖ | Access token, when app auth method used |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
|
|
|
|
<br/>
|
|
|
|
:::tip
|
|
Method at API documentation: [calendar.section.delete](https://apidocs.bitrix24.ru/api-reference/calendar/calendar-section-delete.html)
|
|
:::
|
|
<br/>
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
|
|
CalendarID = "128";
|
|
OwnerID = 1;
|
|
Type = "user";
|
|
|
|
Result = OPI_Bitrix24.DeleteCalendar(URL, CalendarID, OwnerID, Type);
|
|
|
|
URL = "b24-ar17wx.bitrix24.by";
|
|
Token = "b4c59767006e9f06006b12e400000001000...";
|
|
CalendarID = "130";
|
|
|
|
Result = OPI_Bitrix24.DeleteCalendar(URL, CalendarID, OwnerID, Type, Token);
|
|
```
|
|
|
|
|
|
|
|
|
|
|