This method allows to update existing media types. 此方法允许更新已存在的媒介类型。

    (object/array) to be updated.

    (object) Returns an object containing the IDs of the updated media types under the property. (object)返回包含mediatypeids属性下所更新IDs的对象。

    Enabling a media type 启用一个媒介类型

    Enable a media type, that is, set its status to 0. 启用一个媒介类型,就是设置他的status属性是0.

    Response:

    1. {
    2. "jsonrpc": "2.0",
    3. "6"
    4. ]
    5. },

    CMediaType::update() in frontends/php/include/classes/api/services/CMediaType.php.