Step-by-Step API Workflow Guides

A single click in the Litmus UI often triggers a chain of API calls behind the scenes. Each guide below documents one of those chains end to end: the exact call order, the request payloads, which IDs to capture from each response, and the pitfalls the UI quietly handles for you. Use a workflow guide when your task is a verb ("create a device", "deploy an app"); use the per-product endpoint reference when your task is a noun ("list devices", "get a tag value").

Litmus Edge workflows

Create a device with tags

Pick a driver, create and start a DeviceHub device, then add the tags to poll.

7 steps
Open page API collection

Browse for tags in bulk

Crawl a device's full address space (OPC UA nodes, S7 program tree, ...), pick items into a cart, and create them all as tags in one commit.

11 steps
Open page API collection

Build an analytics pipeline

Wire source, transform, and sink processors into a working pipeline, step by step or as a single importable JSON document. Includes OEE, anomaly detection, and SPC recipes.

5 steps
Open page API collection

Create an integration instance

Send tag data to Kafka, Azure IoT, AWS IoT, InfluxDB, S3, and other providers: read the provider schema, create the instance, subscribe tags, start it.

4 steps
Open page API collection

Configure the OPC UA server

Expose edge tags upstream to SCADA or MES systems through the embedded OPC UA server.

9 steps
Open page API collection

Deploy an edge application

Install and launch a containerized application from the marketplace onto the edge.

4 steps
Open page API collection

Apply or upload a configuration template

Download a device configuration template, upload and save it on another edge, then preview and apply it.

8 steps
Open page API collection

Restore a system backup

Upload and restore a full edge backup.

3 steps
Open page API collection

Upload a custom CA certificate

Install a trusted certificate so the edge can talk to internal services over TLS.

2 steps
Open page API collection

Upload an analytics or TensorFlow model

Push an AI/ML model to the edge Analytics engine for local inference.

3 steps
Open page API collection

Authenticate a NATS / DataHub client

Open the device's internal NATS bus to an external client: enable the proxy, create an access account, grant topics, then connect with the four LE-specific client settings.

5 steps + connect
Open page API collection

Create a digital twin

Build an asset model with static and dynamic attributes, create an instance of it, and enable the instance so it publishes to its topic.

7 steps
Open page API collection

Litmus Edge Manager workflows

Provision a new edge device (zero-touch)

Pre-register an edge so it self-activates and joins the fleet on first boot.

5 steps
Open page API collection

Deploy an application to an edge device

Push an application to a remote edge through LEM's asynchronous task system, polling until done.

5 steps
Open page API collection

Back up and restore an edge from LEM

Take a fleet-managed backup of one edge and restore it to the same or a replacement device.

5 steps
Open page API collection

Create a project alert

Define a trigger condition and the notification action it fires across a project.

4 steps
Open page API collection

Upload an AI/ML model to LEM

Stage a model in LEM (S3-backed) for distribution to edges in the fleet.

3 steps
Open page API collection

Litmus Unify workflows

Connect Litmus Edge to Litmus Unify

Create an activation token in Unify, add the Litmus Unify connector on the edge, then confirm the edge account is connected.

8 steps
Open page API collection

Every guide is also runnable interactively: browse all 82 examples in the API collection.

The resumable upload pattern

Several Litmus Edge workflows (templates, backups, certificates, models) share one upload pattern worth knowing before you start:

  1. Clear: a DELETE removes any stale upload session left by an interrupted attempt.
  2. Create session: a POST declares the file size and returns a session ID.
  3. Upload: the file bytes are streamed to the session endpoint, resumable by offset, then the action (apply, restore, install) is committed.

If an upload was interrupted, the half-finished session persists on the server. That is why these workflows begin with the clear step. The template workflow is the exception: its /config/session flow closes the session with a DELETE at the end instead, which also aborts an abandoned upload.