Documentation

log.blogpost.add

Adds a message to the Activity Stream on behalf of the current user.

Function parameters

Parameters Description
POST_MESSAGE Message text
POST_TITLE Message header (optional)
SPERM Access permission rights to view messages (optional), by default - array("UA") - to all authorized users

Example

BX24.callMethod('log.blogpost.add', {POST_MESSAGE: 'Hello, world!'}, function(r){
	if(!r.error())
		{
		alert('OK!');
		}
	else
		{
		throw r.error();
		}
});

Request:

https://my.bitrix24.com/rest/log.blogpost.add.json?POST_MESSAGE=Hello%2C%20world!&auth=d9a76e2929b7bc1ff21aee9c0ce7e3e2

Response:

{"result":true}


© «Bitrix24», 2001-2021, «Bitrix24», 2021