Menu
Get Collection Fields
List Fields in Collection
GET
/fields/{collection}Use it in a workflow
- Add a step and choose the Directus connector.
- Pick the Get Collection Fields action (under Fields).
- Fill in the fields below, then reference the result from later steps as
{{getCollectionFields.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getCollectionFields.response.data.<field>}}.
{
"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.
Was this page helpful?