You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

maintenance()

Usage

maintenance(commandName, parameters)

Description
Allows an admin user to execute a maintenance command from within a scripting context.

Example

${maintenance('rebuildIndex')}

JavaScript Example

{
    Structr.maintenance('rebuildIndex', { type: 'Article' });
}

Search results for "maintenance()"

maintenance()

Allows an admin user to execute a maintenance command from within a scripting context.

maintenance(commandName [, key1, value1 [, ... ]])
$.maintenance(commandName [, map ])

Examples

Using the maintenance() function in a JavaScript context

Maintenance Commands

Maintenance commands are tools for typical administrative tasks to be performed on the server. They can be executed using the built-in maintenance() function, with the Admin Console or by making a HTTP POST request to the Maintenance Resource, followed by the command name.