Добрый день.
В календаре пользователя с админскими полями создал событие. У события в поле "Элементы CRM" указал определённый тестовый лид. Через метод calendar.event.get?type=user&ownerId=123 получаю след.структуру:
[0] => stdClass Object
(
[ID] => 925927
[PARENT_ID] => 925927
[ACTIVE] => Y
[DELETED] => N
[CAL_TYPE] => user
[OWNER_ID] => 123
[NAME] => Тестовое событие 123
[DATE_FROM] => 01.12.2023 09:30:00
[DATE_TO] => 01.12.2023 10:30:00
[ORIGINAL_DATE_FROM] =>
[TZ_FROM] => Asia/Krasnoyarsk
[TZ_TO] => Asia/Krasnoyarsk
[TZ_OFFSET_FROM] => 25200
[TZ_OFFSET_TO] => 25200
[DATE_FROM_TS_UTC] => 1701387000
[DATE_TO_TS_UTC] => 1701390600
[DT_SKIP_TIME] => N
[DT_LENGTH] => 3600
[EVENT_TYPE] =>
[CREATED_BY] => 123
[DATE_CREATE] => 28.11.2023 10:52:50
[TIMESTAMP_X] => 28.11.2023 14:16:42
[DT_FROM] =>
[DT_TO] =>
[PRIVATE_EVENT] =>
[ACCESSIBILITY] => quest
[IMPORTANCE] => normal
[IS_MEETING] =>
[MEETING_STATUS] => H
[MEETING_HOST] => 123
[MEETING] => stdClass Object
(
[HOST_NAME] => Администратор 1
[NOTIFY] => 1
[REINVITE] =>
[ALLOW_INVITE] =>
[MEETING_CREATOR] => 123
[HIDE_GUESTS] => 1
[LANGUAGE_ID] => ru
[MAIL_FROM] =>
)
[LOCATION] => calendar_325_925925
[REMIND] => Array
(
[0] => stdClass Object
(
[type] => min
[count] => 15
)
)
[COLOR] => #0092cc
[TEXT_COLOR] =>
[RRULE] =>
[EXDATE] =>
[DAV_XML_ID] => 20231201T023000Z-d41642481035940ec8447b1d1417525c@plastikaokon.bitrix24.ru
[G_EVENT_ID] =>
[DAV_EXCH_LABEL] =>
[CAL_DAV_LABEL] =>
[VERSION] => 16
[ATTENDEES_CODES] => Array
(
[0] => U123
)
[RECURRENCE_ID] =>
[RELATIONS] =>
[SECTION_ID] => 633
[SYNC_STATUS] =>
[UF_CRM_CAL_EVENT] => Array
(
[0] => L_227081
)
[UF_WEBDAV_CAL_EVENT] => Array
(
)
[DATE_FROM_FORMATTED] => Fri Dec 01 2023 09:30:00
[DATE_TO_FORMATTED] => Fri Dec 01 2023 10:30:00
[SECT_ID] => 633
[ATTENDEE_LIST] => Array
(
[0] => stdClass Object
(
[id] => 123
[entryId] => 925927
[status] => H
)
)
[attendeesEntityList] => Array
(
[0] => stdClass Object
(
[entityId] => user
[id] => 123
)
)
[~USER_OFFSET_FROM] => 0
[~USER_OFFSET_TO] => 0
)
Пытаюсь поменять это событие следующим запросом:
https://mycomp1.bitrix24.ru/rest/123/abc123abc123abc/calendar.event.update.json?type=user&ownerId=123&id=925927§ion=633&name=%D0%A2%D0%B5%D1%81%D1%82%D0%BE%D0%B2%D0%BE%D0%B5+%D1%81%D0%BE%D0%B1%D1%8B%D1%82%D0%B8%D0%B5+1701170741&UF_CRM_CAL_EVENT%5B0%5D=L_302085
T.e. заменить привязанный лид с L_227081 на L_302085. Но название события меняется, а привязанный лид нет.
Может как-то по другому это делать? Может через методы изменения лида менять события к которым он привязан?