diff --git a/README.md b/README.md index d5ed064..9d80deb 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Node-RED nodes for the [Zammad](https://zammad.org/) helpdesk API. Part of the ### Prerequisites - An existing [nextcloud-node-red](https://kode.hannesahlin.se/n3wk/nextcloud-nodered-ocs-api) installation. -- A Zammad API token with `ticket.agent` permission, created while logged into `support.hanssonit.se`. +- A Zammad API token with `ticket.agent` permission. ### Quick install (recommended) @@ -53,10 +53,10 @@ The integrate script: | Method | Header | Notes | |--------|--------|-------| -| Token (preferred) | `Authorization: Token token=` | Create token on support.hanssonit.se with `ticket.agent` permission | +| Token (preferred) | `Authorization: Token token=` | Create token with `ticket.agent` permission | | Basic | `Authorization: Basic base64(user:pass)` | Username is typically just `Hannes` (not full email) | -**Important:** Base URL must be `https://support.hanssonit.se/api/v1/`. +**Important:** Base URL is the Zammad API v1 URL, e.g. `https://example.com/api/v1/`. Using `zammad.kafit.se` or other hosts will result in authentication errors. ## Node Details diff --git a/nodes/zammad-config.html b/nodes/zammad-config.html index 3f68cfc..a662b71 100644 --- a/nodes/zammad-config.html +++ b/nodes/zammad-config.html @@ -3,7 +3,7 @@ category: "config", defaults: { name: { value: "" }, - baseUrl: { value: "https://support.hanssonit.se/api/v1", required: true }, + baseUrl: { value: "https://example.com/api/v1", required: true }, useToken: { value: true } }, credentials: { @@ -27,7 +27,7 @@
- +
@@ -38,7 +38,7 @@
- Create token at https://support.hanssonit.se while logged in.
+ Create token at your Zammad instance while logged in.
Required permission: ticket.agent
@@ -60,8 +60,8 @@

Details

Configure your Zammad instance connection.

diff --git a/nodes/zammad-config.js b/nodes/zammad-config.js index 406ae73..e8195c6 100644 --- a/nodes/zammad-config.js +++ b/nodes/zammad-config.js @@ -8,7 +8,7 @@ module.exports = function (RED) { RED.nodes.createNode(this, config); const node = this; - node.baseUrl = (config.baseUrl || "https://support.hanssonit.se/api/v1").replace(/\/+$/, ""); + node.baseUrl = (config.baseUrl || "https://example.com/api/v1").replace(/\/+$/, ""); node.useToken = config.useToken !== false; node.token = config.token || ""; node.username = config.username || "";