Skip to main content

Set user participation status

Sets the event participation status for the current user

Function SetUserParticipationStatus(Val URL, Val EventID, Val Status, Val Token = "") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringURL of webhook or a Bitrix24 domain, when token used
EventID--eventNumberCalednar event ID
Status--statusStringParticipation status: Y (agreed), N (refused), Q (did not answer)
Token--tokenStringAccess token, when app auth method used

Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API


tip

Method at API documentation: calendar.meeting.status.set


1C:Enterprise/OneScript code example
    URL     = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
EventID = "686";
Status = "Y";

Result = OPI_Bitrix24.SetUserParticipationStatus(URL, EventID, Status);

URL = "b24-ar17wx.bitrix24.by";
Token = "2f89d867006e9f06006b12e400000001000...";
EventID = "690";

Result = OPI_Bitrix24.SetUserParticipationStatus(URL, EventID, Status, Token);
    oint bitrix24 SetUserParticipationStatus \
--url "b24-ar17wx.bitrix24.by" \
--event 722 \
--status "Y" \
--token "***"
Result
{
"result": true,
"time": {
"start": 1739051124.54554,
"finish": 1739051124.63199,
"duration": 0.0864500999450684,
"processing": 0.060575008392334,
"date_start": "2025-02-09T00:45:24+03:00",
"date_finish": "2025-02-09T00:45:24+03:00",
"operating_reset_at": 1739051724,
"operating": 0
}
}