Macro API

/macro/list

Verb: GET

Returns the entire list of macros in the form of a json array.

/macro/get

Verb: GET

Returns a specified macro in json format.

QueryParam:
  • label: The unique name of the macro.

/macro/save

Verb: POST

Returns a specified macro in json format. This endpoint requires a username in the header of the POST request. It can be specified in curl with -H 'Username: hydra'.

QueryParam:
  • label: The unique name of the macro. Specified as a short string of characters without spaces. Required.
  • description: A human readable description of the macro. A short description of macro with spaces allowed. Required.
  • macro: The content of the macro. Required.

/macro/delete

Verb: GET

Deletes the specified macro.

QueryParam:
  • name: The unique name of the macro.

Table Of Contents

Previous topic

Alias API

Next topic

Commands API

This Page