mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-27 21:48:56 +02:00
50 lines
1.2 KiB
Plaintext
Vendored
50 lines
1.2 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 4
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Delete calendar event
|
|
Deletes an event from the calendar
|
|
|
|
|
|
|
|
`Function DeleteCalendarEvent(Val URL, Val EventID, Val Token = "") Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| URL | --url | String | ✔ | URL of webhook or a Bitrix24 domain, when token used |
|
|
| EventID | --event | Number | ✔ | ID of the event to be deleted |
|
|
| 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.event.delete](https://apidocs.bitrix24.ru/api-reference/calendar/calendar-event/calendar-event-delete.html)
|
|
:::
|
|
<br/>
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
|
|
EventID = "162";
|
|
|
|
Result = OPI_Bitrix24.DeleteCalendarEvent(URL, EventID);
|
|
|
|
URL = "b24-ar17wx.bitrix24.by";
|
|
Token = "39b8a567006e9f06006b12e400000001000...";
|
|
EventID = "162";
|
|
|
|
Result = OPI_Bitrix24.DeleteCalendarEvent(URL, EventID, Token);
|
|
```
|
|
|
|
|
|
|
|
|
|
|