younifyd
Menu

Create Dashboards

Create Multiple Dashboards

POST/dashboards

Use it in a workflow

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

dataarray<object>
idstring (uuid)

Primary key of the dashboard;

namestring

Name of the dashboard.

iconstring

Material icon for dashboard.

notestring

Descriptive text about the dashboard.

date_createdstring (date-time)

When the dashboard was created.

user_createdstring (relation)

User that created the dashboard. Many-to-one to users.

colorstring (hexcode)

Accent color for the dashboard.

panelsstring

Panels that are in this dashboard. One-to-may to panels.

json
{
  "data": [
    {
      "id": "a79bd1b2-beb2-49fc-8a26-0b3eec0e2697",
      "name": "My dashboard",
      "icon": "space_dashboard",
      "note": "Test",
      "date_created": "2023-01-25T19:16:49.009Z",
      "user_created": "fd066644-c8e5-499d-947b-fe6c6e1a1473",
      "color": null,
      "panels": "22640672-eef0-4ee9-ab04-591f3afb2883"
    }
  ]
}

Response

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

dataarray<object>
idstring (uuid)

Primary key of the dashboard;

namestring

Name of the dashboard.

iconstring

Material icon for dashboard.

notestring

Descriptive text about the dashboard.

date_createdstring (date-time)

When the dashboard was created.

user_createdstring (relation)

User that created the dashboard. Many-to-one to users.

colorstring (hexcode)

Accent color for the dashboard.

panelsstring

Panels that are in this dashboard. One-to-may to panels.

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": "a79bd1b2-beb2-49fc-8a26-0b3eec0e2697",
      "name": "My dashboard",
      "icon": "space_dashboard",
      "note": "Test",
      "date_created": "2023-01-25T19:16:49.009Z",
      "user_created": "fd066644-c8e5-499d-947b-fe6c6e1a1473",
      "color": null,
      "panels": "22640672-eef0-4ee9-ab04-591f3afb2883"
    }
  ],
  "meta": {
    "total_count": 0,
    "filter_count": 0
  }
}

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

Create Dashboards — Directus — Documentation