PUT /v2/macros/{id}

Edits an existing macro by id. Macro name is immutable.

Servers

Path parameters

Name Type Required Description
id String Yes

UUID of the macro to edit.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
definition String Yes

The definition of the macro. Use a valid Sumo Log Search expression.

description String No

Description of the macro.

arguments[] Array No

Arguments used in the macro.

arguments[].name String Yes

Argument name for the macro.

arguments[].type String No

The type of the macro.

Default value: "String"

enabled Boolean No

If the macro is enabled or not (default True)

Default value: true

argumentValidations[] Array No

Validation expressions for the arguments.

argumentValidations[].errorMessage String Yes

Error message to be shown if the macro argument validation fails.

argumentValidations[].evalExpression String Yes

The expression to validate a macro argument.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.