ev4 CMS
Description
Section titled “Description”The ev4 CMS module allows interacting with the ev4 content management system (CMS). It supports GET operations to retrieve posts and POST to create or update content, including image uploads in base64 format. It uses basic authentication and forces HTTPS connections. It is ideal for synchronizing content between the workflow and an ev4-based CMS, automatically publishing articles, or extracting information from existing posts.
Configuration
Section titled “Configuration”| Parameter | Type | Required | Description |
|---|---|---|---|
| url | text | Yes | CMS endpoint URL (supports {{variable}} variables) |
| method | select | Yes | HTTP method: GET or POST |
| credentials_id | credentials | No | CMS access credentials |
| sslVerify | boolean | No | Verify SSL certificate (default: false) |
| dataKey | text | No | Data key for filtering |
Credentials
Section titled “Credentials”The credential must contain the fields:
username: Username for basic authenticationpassword: Password for basic authentication
The module generates an Authorization: Basic <base64> header with these credentials.
Output
Section titled “Output”{ "nextModule": "siguiente_modulo", "data": { "id": "123", "titulo": "Post de ejemplo" }, "_meta_": { "status": 200, "headers": {} }}Usage Example
Section titled “Usage Example”Basic case
Section titled “Basic case”{ "url": "https://miempresa.ev4erp.net/api/cms/posts", "method": "GET", "credentials_id": "cred_ev4_01"}API Used
Section titled “API Used”- ev4 CMS endpoint configured in the
urlfield - HTTP URLs are automatically converted to HTTPS
- Supports dynamic variables
{{variable}}in the URL http://URLs are automatically converted tohttps://- SSL verification is disabled by default (
rejectUnauthorized: false) - In POST mode, the module sends the workflow data along with metadata such as
_action,_typeFiles,_categoriasand_files - Supports file uploads as base64-encoded images
- Files can be configured via
config.files(array) ordata.file(direct path) - The response is parsed as JSON; if it is not valid JSON, it is treated as the created resource ID
Related Nodes
Section titled “Related Nodes”- ev4cmsUpload (file upload to ev4 CMS)
- ev4Client (ev4 ERP data access)