Update post
Change post data
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
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 = "2988";
Files = New Map;
Files.Insert("1.png", Image1);
URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
Result = OPI_Bitrix24.UpdatePost(URL, PostID, Text, , Files, Title);
URL = "b24-ar17wx.bitrix24.by";
Token = "75d8c668006e9f06006b12e400000001000...";
PostID = "2986";
Result = OPI_Bitrix24.UpdatePost(URL, PostID, Text, , Files, Title, Token);
- Bash
- CMD/Bat
oint bitrix24 UpdatePost \
--url ""b24-ar17wx.bitrix24.by"" \
--postid "3026" \
--text ""New post text"" \
--files ""/tmp/ajvvdqxo.mxt.json"" \
--title ""New post title"" \
--token "***"
oint bitrix24 UpdatePost ^
--url ""b24-ar17wx.bitrix24.by"" ^
--postid "3026" ^
--text ""New post text"" ^
--files ""/tmp/ajvvdqxo.mxt.json"" ^
--title ""New post title"" ^
--token "***"
Result
{
"result": 3026,
"time": {
"start": 1757976252.71571,
"finish": 1757976253.05583,
"duration": 0.340120077133179,
"processing": 0.316585063934326,
"date_start": "2025-09-15T22:44:12+00:00",
"date_finish": "2025-09-15T22:44:13+00:00",
"operating_reset_at": 1757976852,
"operating": 0.316570043563843
}
}