younifyd
Menu

Update Flows

Update Multiple Flows

PATCH/flows

Use it in a workflow

  1. Add a step and choose the Directus connector.
  2. Pick the Update Flows action (under Flows).
  3. Fill in the fields below, then reference the result from later steps as {{updateFlows.response.data}}.

Request

Query parameters

fieldsarray<string>

Control what fields are being returned in the object.

limitinteger

A limit on the number of objects that are returned.

metastring

What metadata to return in the response.

offsetinteger

How many items to skip when fetching data.

sortarray<string>

How to sort the returned items. `sort` is a CSV of fields used to sort the fetched items. Sorting defaults to ascending (ASC) order but a minus sign (` - `) can be used to reverse this to descending (DESC) order. Fields are prioritized by their order in the CSV.

filterany

Select items in collection by given conditions.

searchstring

Filter by items that contain the given search query in one of their fields.

Request body

Enter the body as JSON in the step's Body field.

dataoneOfrequired
keysarray<string>required
json
{
  "data": null,
  "keys": [
    "string"
  ]
}

Response

Returns 200 with an object. Read it in later steps with {{updateFlows.response.data.<field>}}.

dataarray<object>
idstring (uuid)

Unique identifier for the flow.

namestring

The name of the flow.

iconstring

Icon displayed in the Admin App for the flow.

colorstring (hexcode)

Color of the icon displayed in the Admin App for the flow.

descriptionstring
statusstring

Current status of the flow.

One ofactiveinactiveDefault "active"

triggerstring

Type of trigger for the flow. One of `hook`, `webhook`, `operation`, `schedule`, `manual`.

accountabilitystring

The permission used during the flow. One of `$public`, `$trigger`, `$full`, or UUID of a role.

optionsobject

Options of the selected trigger for the flow.

operationoneOf

UUID of the operation connected to the trigger in the flow.

date_createdstring (date-time)

Timestamp in ISO8601 when the flow was created.

user_createdoneOf

The user who created the flow.

operationsarray<oneOf>
metaobject
total_countinteger

Returns the total item count of the collection you're querying.

filter_countinteger

Returns the item count of the collection you're querying, taking the current filter/search parameters into account.

json
{
  "data": [
    {
      "id": "2f24211d-d928-469a-aea3-3c8f53d4e426",
      "name": "Update Articles Flow",
      "icon": "bolt",
      "color": null,
      "description": "string",
      "status": "active",
      "trigger": "manual",
      "accountability": "$trigger",
      "options": null,
      "operation": "92e82998-e421-412f-a513-13701e83e4ce",
      "date_created": "2022-05-11T13:14:52Z",
      "user_created": "63716273-0f29-4648-8a2a-2af2948f6f78"
    }
  ],
  "meta": {
    "total_count": 0,
    "filter_count": 0
  }
}

Need more? See the Directus guide for connection setup and behaviour shared by every action.

Was this page helpful?