object application.create(object/array applications)
This method allows to create new applications.
This method is only available to Admin and Super admin user types. Permissions to call the method can be revoked in user role settings. See User roles for more information.
(object/array)
Applications to create.
The method accepts applications with the standard application properties.
(object)
Returns an object containing the IDs of the created applications under the applicationids
property. The order of the returned IDs matches the order of the passed applications.
Create an application to store SNMP items.
Request:
{
"jsonrpc": "2.0",
"method": "application.create",
"params": {
"name": "SNMP Items",
"hostid": "10050"
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
Response:
CApplication::create() in ui/include/classes/api/services/CApplication.php.