You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 17 Next »

This page describes the commands endpoint, which can be used to trigger commands defined in catalogs

Commands can perform duties within the system or connect to external resources. 

The REST resource must be called with HTTP POST.

Request URLs

The endpoint recognizes URLs with or without a catalog parameter.

POST  /commands/v2/{catalogName}/{commandName}

POST  /commands/v2/{commandName}

Parameters

Parameter

Description

Parameter type

Data type

commandName

required

The name of the command as defined in the Command definition.

path String

catalogName

optional default catalog name is default

The name of the Command catalog.

path

String

body

required

Request body in JSON or XML format; it contains the parameters required to execute the command.

body

String

Example

<TODO: Find an example of a command which is not related to publishing. Note that new publishing is not yet supporting commands (wrapping the new operations.)>




#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels