younifyd
Menu

Update Extension

Update an Extension

PATCH/extensions/{id}

Use it in a workflow

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

Request

Path parameters

idstringrequired

Unique identifier for the object.

Request body

Enter the body as JSON in the step's Body field.

metaobject

Directus metadata for the extension. Where the configuration for the extension in the current project is stored.

enabledboolean

Whether or not the extension is enabled.

json
{
  "meta": {
    "enabled": true
  }
}

Response

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

dataobject
enabledboolean

Whether or not the extension is enabled.

idstring (uuid)

Unique identifier of the extension.

bundlestring

Name of the bundle the extension is in.

typestring

Type of the extension. One of `'interface'`, `'display'`, `'layout'`, `'module'`, `'panel'`, `'hook'`, `'endpoint'`, `'operation'`, `'bundle'.

localboolean

Whether the extension exists in the local extensions folder or is loaded from `node_modules`.

versionstring

The currently loaded version of the plugin as defined by its `package.json`.

partialboolean

Whether or not a bundles entries can be individually disabled. This is applicable to bundle type extensions only. ``` { "name": "my-bundle-operation", "bundle": "directus-extension-my-bundle", "schema": { "type": "operation", "local": true, "version": "1.0.0" }, "meta": { "enabled": true } } ```

json
{
  "data": {
    "enabled": false,
    "id": "00000000-0000-0000-0000-000000000000",
    "bundle": "my-bundle",
    "type": "string",
    "local": false,
    "version": "string",
    "partial": false
  }
}

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