regexp.create

    This method allows to create new global regular expressions.

    This method is only available to Super admin user types. Permissions to call the method can be revoked in user role settings. See for more information.

    Additionally to the , the method accepts the following parameters.

    (object) Returns an object containing the IDs of the created regular expressions under the regexpids property.

    Creating a new global regular expression.

    Response:

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

    CRegexp::create() in ui/include/classes/api/services/CRegexp.php.