younifyd
Menu

Get Operations

List Operations

GET/operations

Use it in a workflow

  1. Add a step and choose the Directus connector.
  2. Pick the Get Operations action (under Operations).
  3. Fill in the fields below, then reference the result from later steps as {{getOperations.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.

offsetinteger

How many items to skip when fetching data.

metastring

What metadata to return in the response.

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.

pageinteger

Cursor for use in pagination. Often used in combination with limit.

Response

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

dataarray<object>
idstring (uuid)

Unique identifier for the operation.

namestring

The name of the operation.

keystring

Key for the operation. Must be unique within a given flow.

typestring

Type of operation. One of `log`, `mail`, `notification`, `create`, `read`, `request`, `sleep`, `transform`, `trigger`, `condition`, or any type of custom operation extensions.

position_xinteger

Position of the operation on the X axis within the flow workspace.

position_yinteger

Position of the operation on the Y axis within the flow workspace.

optionsobject

Options depending on the type of the operation.

resolveoneOf

The operation triggered when the current operation succeeds (or `then` logic of a condition operation).

rejectoneOf

The operation triggered when the current operation fails (or `otherwise` logic of a condition operation).

flowstring (uuid)
date_createdstring (date-time)

Timestamp in ISO8601 when the operation was created.

user_createdoneOf

The user who created the operation.

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": "Log to Console",
      "key": "log_console",
      "type": "log",
      "position_x": 12,
      "position_y": 12,
      "options": null,
      "resolve": "63716273-0f29-4648-8a2a-2af2948f6f78",
      "reject": "63716273-0f29-4648-8a2a-2af2948f6f78",
      "flow": "00000000-0000-0000-0000-000000000000",
      "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?