SOAP API method MiniRule_copy

Back to API references

Description
When a miniview given, the copy will be created there. When a array to the 4th parameter is given, all objects that failed to copy will be add to the array. The available options force: Always return a object, even when some of the childs failed to copy. exactlinks: Copy links to other miniviews exactly, don't relink them to the newly copied miniview

Parameters
Parameter 'id' : int
Unique identifier (id) of the object MiniRule. The method only applies to the minirule with this id.
Parameter 'name' : string
The name of the new MiniRule.
Parameter 'miniview' : Structure of type 'miniview'
The parent for the new miniRule, when omitted the same parent as this minirule will be used.
Parameter 'options' : Collection of type 'options'
The extra copy options
Parameter 'login' : Structure of type 'login'
Optional login data

Return values
Return value 'minirule' : Structure of type 'minirule'
Return value 'value' : boolean

Structure 'miniview'
This structure miniview was mentioned above. This structure has the following properties:
Property 'id' : int
The ID of the miniview.
Property 'name' : string
The name of the miniview.
Property 'description' : string
The description of the miniview.
Property 'countsubprofiles' : int
The number of subprofiles.
Property 'lastbuilt' : timestamp
When was the item rebuilt for the last time?

Structure 'options'
This structure options was mentioned above. This structure has the following properties:
Property '' : string

Structure 'login'
This structure login was mentioned above. This structure has the following properties:
Property 'username' : string
The username of the login attempt
Property 'account' : string
The account name of the login attempt
Property 'password' : string
The password for the login attempt

Structure 'minirule'
This structure minirule was mentioned above. This structure has the following properties:
Property 'id' : int
The ID of the minirule.
Property 'name' : string
The name of the minirule.
Property 'inversed' : boolean
Is this minirule an inversed minirule?
Property 'disabled' : boolean
Is this minirule disabled?