Moogsoft Docs

reorderWorkflows

A Graze API POST request that reorders the sequence of workflows within a Workflow Engine Moolet.

Back to Graze API EndPoint Reference.

Request arguments

Endpoint reorderWorkflows takes the following request arguments:

Name

Type

Required

Description

auth_token

String

Yes

A valid auth_token returned from the authenticate request. See the authenticate endpoint for more information.

moolet_name

String

Yes

Name of the Workflow Engine Moolet.

workflow_sequence

Array of Integers

Yes

An ordered array of all the workflow IDs within the Workflow Engine Moolet. The position of each workflow ID is its position within the Workflow Engine Moolet.

Response

Endpoint reorderWorkflows returns the following response:

Examples

The following examples demonstrate typical use of endpoint reorderWorkflows:

Request example

Example cURL request to order the workflows within the "Alert Workflows" Workflow Engine as workflow ID 3 then workflow ID 1:

curl -X POST -u graze:graze -k -v "https://localhost/graze/v1/reorderWorkflows" -H "Content-Type: application/json; charset=UTF-8" --data '{
 "moolet_name" : "Alert Workflows",
 "workflow_sequences" : [3,1]
}'
Response example