younifyd
Menu

Get Collection Field

Retrieve a Field

GET/fields/{collection}/{id}

Use it in a workflow

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

Request

Path parameters

collectionstringrequired

Unique identifier of the collection the item resides in.

idstringrequired

Unique identifier of the field.

Response

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

dataobject
idinteger
collectionstring

Unique name of the collection this field is in.

fieldstring

Unique name of the field. Field name is unique within the collection.

specialarray<string>

Any special transform flags that apply to this field.

interfacestring

The interface used for this field.

optionsobject

The interface options configured for this field. The structure is based on the interface used.

displaystring

The display used for this field.

display_optionsstring

The configured options for the used display.

readonlyboolean

If the field is considered readonly in the Data Studio.

hiddenboolean

If the field is hidden from the edit page in the Data Studio.

sortinteger

Where this field is shown on the edit page in the Data Studio.

widthstring

How wide the interface is rendered on the edit page in the Data Studio. One of `half`, `half-left`, `half-right`, `half-space`, `full`, `fill`.

translationsarray<any>

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

notestring

Short description displayed in the Data Studio.

requiredboolean
groupinteger
validation_messagestring
json
{
  "data": {
    "id": 0,
    "collection": "about_us",
    "field": "id",
    "special": [
      "string"
    ],
    "interface": "string",
    "options": {},
    "display": "string",
    "display_options": "string",
    "readonly": false,
    "hidden": false,
    "sort": 0,
    "width": "string"
  }
}

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

Get Collection Field — Directus — Documentation