Update post
Change post data
- Parameters
- Advanced call ?
Function UpdatePost(Val URL, Val PostID, Val Text, Val Visibility = "UA", Val Files = "", Val Title = "", Val Token = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| URL | --url | String | ✔ | URL of webhook or a Bitrix24 domain, when token used |
| PostID | --postid | String, Number | ✔ | Post ID |
| Text | --text | String | ✔ | Text of post |
| Visibility | --vision | String | ✖ | Array or 1 recipient: UA all, SGn w. group, Un user, DRn department, Gn group |
| Files | --files | Map Of KeyAndValue | ✖ | Key > file name, value > path or binary data |
| Title | --title | String | ✖ | Post title |
| Token | --token | String | ✖ | Access token, when app auth method used |
Returns
Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete structure with fields code, body, and headers |
tip
Method at API documentation: log.blogpost.update
1C:Enterprise/OneScript code example
Text = "New post text";
Title = "New post title";
Image1 = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary data
PostID = "3326";
Files = New Map;
Files.Insert("1.png", Image1);
URL = "https://b24-ar17wx.bitrix24.by/rest/1/av5...";
Result = OPI_Bitrix24.UpdatePost(URL, PostID, Text, , Files, Title);
URL = "b24-ar17wx.bitrix24.by";
Token = "a5b00469006e9f06006b12e400000001000...";
PostID = "3324";
Result = OPI_Bitrix24.UpdatePost(URL, PostID, Text, , Files, Title, Token);
- Bash
- CMD/Bat
# JSON data can also be passed as a path to a .json file
oint bitrix24 UpdatePost \
--url "b24-ar17wx.bitrix24.by" \
--postid 4034 \
--text "New post text" \
--files "{'1.png':'https://hut.openintegrations.dev/test_data/picture.jpg'}" \
--title "New post title" \
--token "***"
:: JSON data can also be passed as a path to a .json file
oint bitrix24 UpdatePost ^
--url "b24-ar17wx.bitrix24.by" ^
--postid 4034 ^
--text "New post text" ^
--files "{'1.png':'https://hut.openintegrations.dev/test_data/picture.jpg'}" ^
--title "New post title" ^
--token "***"
Result
{
"result": 4034,
"time": {
"start": 1777723396,
"finish": 1777723397.11646,
"duration": 1.116455078125,
"processing": 1,
"date_start": "2026-05-02T12:03:16+00:00",
"date_finish": "2026-05-02T12:03:17+00:00",
"operating_reset_at": 1777723996,
"operating": 0.443066120147705
}
}