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:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": {
    4. "userids": [
    5. "1",
    6. "2"
    7. },
    8. "id": 1
    9. }

    Source

    CUser::updateMedia() in frontends/php/include/classes/api/services/CUser.php.