younifyd
Menu

Get Collection

Retrieve a Collection

GET/collections/{id}

Use it in a workflow

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

Request

Path parameters

idstringrequired

Unique identifier of the collection.

Query parameters

metastring

What metadata to return in the response.

Response

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

dataobject
collectionstring

Name of the collection. This matches the table name in the database.

iconstring

Icon displayed in the Data Studio when working with this collection.

notestring

Short description displayed in the Data Studio.

display_templatestring

How items in this collection should be displayed when viewed relationally in the Data Studio.

hiddenboolean

Whether or not this collection is hidden in the Data Studio.

singletonboolean

Whether or not this collection is treated as a singleton.

translationsarray<any>

How this collection's name is displayed in the different languages in the Data Studio.

archive_fieldstring

What field in the collection holds the archived state.

archive_app_filterboolean
archive_valuestring

What value the archive field should be set to when archiving an item.

unarchive_valuestring

What value the archive field should be set to when unarchiving an item.

sort_fieldstring

What field holds the sort value on the collection. The Data Studio uses this to allow drag-and-drop manual sorting.

accountabilitystring

What data is tracked. One of `all`, `activity`.

item_duplication_fieldsarray<any>

What fields are duplicated during "Save as copy" action of an item in this collection.

sortinteger

What sort order of the collection relative to other collections of the same level.

groupstring

The name of the parent collection.

collapsestring

What is the default behavior of this collection or "folder" collection when it has nested collections. One of `open`, `closed`, `locked`.

versioningboolean

Whether or not Content Versioning is enabled for this collection.

json
{
  "data": {
    "collection": "customers",
    "icon": "string",
    "note": "string",
    "display_template": "string",
    "hidden": false,
    "singleton": false,
    "translations": [
      null
    ],
    "archive_field": "string",
    "archive_app_filter": false,
    "archive_value": "string",
    "unarchive_value": "string",
    "sort_field": "string"
  }
}

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