This method allows to update media for multiple users.
This method is deprecated and will be removed in the future. Please use instead.
Parameters
(object)
Parameters defining the media and users to be updated.
Examples
Replacing media for multiple users
Replace all media used by the two users with a common e-mail media. The media must send notifications about all alerts at any time.
Request:
Response:
- {
- "jsonrpc": "2.0",
- "result": {
- "userids": [
- "1",
- "2"
- },
- "id": 1
- }
Source
CUser::updateMedia() in frontends/php/include/classes/api/services/CUser.php.