younifyd
Menu

Update Settings

Update Settings

PATCH/settings

Use it in a workflow

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

Request

Query parameters

fieldsarray<string>

Control what fields are being returned in the object.

metastring

What metadata to return in the response.

Response

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

dataobject
idinteger

Unique identifier for the setting.

project_namestring

Name of the project, shown in the Data Studio.

project_urlstring

The url of the project. Link to the (public) website that goes with this project.

project_colorstring (hexcode)

The brand color of the project.

project_logostring

The logo of the project. Many-to-one to files.

public_foregroundstring

The foreground of the project. Many-to-one to files.

public_backgroundobject

The background of the project. Many-to-one to files.

public_notestring

Note rendered on the public pages of the app.

auth_login_attemptsinteger

Allowed authentication login attempts before the user's status is set to blocked.

auth_password_policystring (regex)

Authentication password policy. What regex passwords must pass in order to be valid.

storage_asset_transformstring

If the transform endpoints are allowed to be used on the assets endpoint. One of all, none or presets.

One ofallnonepresets

storage_asset_presetsarray<object>8 fields

What preset keys exist in the assets endpoint.

custom_cssstring

CSS rules to override the App's default styling.

storage_default_folderstring (uuid)

Folder for uploaded files. Does not affect existing files.

basemapsarray<any>

Custom tiles to overriding the Mapbox defaults.

mapbox_keystring

Mapbox Access Token.

module_bararray<any>

What modules are enabled/added globally.

project_descriptorstring

Descriptor of the project, shown in the Data Studio.

custom_aspect_ratiosarray<any>

Custom aspect ratios in the image editor.

public_faviconstring

Favicon for the Data Studio. Many-to-one to files.

default_appearancestring

One of auto, light, dark.

One ofautolightdark

default_theme_lightstring

Default theme to use in light mode.

theme_light_overridesobject

Default customization for light theme in use.

default_theme_darkstring

Default theme to use in dark mode.

theme_dark_overridesobject

Default customization for dark theme in use.

report_error_urlstring

Link to the error report page. This is a template URL that has access to the following object ``` { error: { name?: string; message?: string; }; route: { fullPath: string; hash: string; name: string; path: string; query: string; }; navigator: { language: string; userAgent: string; }; user: { id?: string | number; first_name?: string; last_name?: string; title?: string; description?: string; location?: string; status?: string; }; role: { id?: string; name?: string; }; } ```

report_bug_urlstring

Link to the bug report page.

report_feature_urlstring

Link to the feature request page.

ai_openai_api_keystring

OpenAI API key used for AI features. Stored hashed.

ai_openai_allowed_modelsarray<string>

List of OpenAI model IDs permitted for use in the AI assistant.

ai_anthropic_api_keystring

Anthropic API key used for AI features. Stored hashed.

ai_anthropic_allowed_modelsarray<string>

List of Anthropic model IDs permitted for use in the AI assistant.

ai_google_api_keystring

Google AI API key used for AI features. Stored hashed.

ai_google_allowed_modelsarray<string>

List of Google model IDs permitted for use in the AI assistant.

ai_system_promptstring

Custom system prompt prepended to all AI assistant conversations.

ai_openai_compatible_namestring

Display name for a custom OpenAI-compatible provider.

ai_openai_compatible_base_urlstring

Base URL for a custom OpenAI-compatible API endpoint.

ai_openai_compatible_api_keystring

API key for the custom OpenAI-compatible provider. Stored hashed.

ai_openai_compatible_headersarray<object>

Additional HTTP headers to include when calling the custom OpenAI-compatible provider.

ai_openai_compatible_modelsarray<object>1 fields

List of model definitions available from the custom OpenAI-compatible provider.

json
{
  "data": {
    "id": 1,
    "project_name": "Directus",
    "project_url": null,
    "project_color": null,
    "project_logo": null,
    "public_foreground": null,
    "public_background": null,
    "public_note": null,
    "auth_login_attempts": 25,
    "auth_password_policy": "string",
    "storage_asset_transform": "all",
    "storage_asset_presets": null
  }
}

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