Drupal

Create and list content nodes in your Drupal site.

ContentCredentials form6 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (6)
  4. drupal-call-service
  5. drupal-create-entity
  6. drupal-delete-entity
  7. drupal-get-entity
  8. drupal-list-entities
  9. drupal-update-entity
  10. Details

Connect

Auth type: Credentials form (custom_auth). Pass the fields the provider needs (listed below) as the connection's credentials. They are sealed at rest.

FieldTypeDescription
urlrequiredtextYour Drupal site URL
usernamerequiredtextDrupal admin username
passwordrequiredsecretDrupal admin password
  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("drupal", action, input) resolves with the provider's answer and rejects when Drupal isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "drupal"} says whether yours can call it.

Workflow
// workflows/notify.ts: call Drupal when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellDrupal = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when Drupal isn't connected.
  const output = await step.run("Drupal", () =>
    step.ctx.integrations.invoke("drupal", "drupal-call-service", {
      "service": "<service>",
      "config": {}
    }),
  );
  step.ctx.log("Drupal answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "drupal",
    "piece_action": "drupal-call-service",
    "input": {
      "service": "<service>",
      "config": {}
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/drupal/drupal-call-service" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"service":"<service>","config":{}}}'

Actions

drupal-call-service

Call Service. Call a service on the Drupal site

InputTypeDescription
servicerequiredid (picked from your account)The service to call.
configrequiredobject (depends on other props)Service configuration

drupal-create-entity

Create Entity. Create a new entity in Drupal with smart field discovery and validation

InputTypeDescription
entity_typerequiredid (picked from your account)Choose the type of content to create.
entity_fieldsoptionalobject (depends on other props)Fill in the content fields. Available fields depend on the entity type selected above.

drupal-delete-entity

Delete Entity. Delete an entity from Drupal

InputTypeDescription
entity_typerequiredid (picked from your account)Choose the type of content to delete.
entity_uuidrequiredtextThe unique identifier (UUID) of the specific content item to delete.

drupal-get-entity

Get Entity. Retrieve a single entity by UUID

InputTypeDescription
entity_typerequiredid (picked from your account)Choose the type of content to retrieve.
entity_uuidrequiredtextThe unique identifier (UUID) of the specific content item to retrieve.

drupal-list-entities

List Entities. List entities from Drupal using JSON:API

InputTypeDescription
entity_typerequiredid (picked from your account)Choose what type of content to list.
published_statusoptionalone of "all" | "published" | "unpublished"Filter by publication status
sort_byoptionalobject (depends on other props)Choose how to sort the entities
sort_directionoptionalone of "DESC" | "ASC"Sort Direction
limitrequirednumberMaximum number of entities to retrieve (0 = all entities)
output_optionsoptionalobject (depends on other props)Output Options

drupal-update-entity

Update Entity. Update an existing entity in Drupal with smart field discovery and validation

InputTypeDescription
entity_typerequiredid (picked from your account)Select the entity type and bundle
entity_uuidrequiredtextThe UUID of the entity to update
entity_fieldsoptionalobject (depends on other props)Update the values for the entity fields (only provide values for fields you want to change)

Details

Id
drupal
Category
Content
Tags
cms, enterprise, content, open-source
Package
@activepieces/piece-drupal@1.1.4
Runs
Through the integration runner