API User Manual
This is the complete user manual for the PlantPulse Java API client library (plantpulse-api). Through 13 domain services, you can access all master and operational data on the platform — sites, assets, tags, alarms, work orders, and more.
Library Features
- Standard REST — GET/POST/PUT/PATCH/DELETE methods used according to their intended semantics
- Typed DTOs — All requests and responses are automatically mapped to
*RequestV5/*ResponseV5classes (no manual JSONObject parsing) - Per-tab PATCH — Supports 10 kinds of partial updates for Tag: alarm, metadata, calculation, aggregation, and more
- 13 domain services — system, site, customer, employee, product, asset, opc, tag, alarm, order, calendar, path, flow
- Safe defaults — Returns
nullor an empty list on failure (no exceptions thrown)
Who is this manual for? It is a full reference for developers building external systems (MES, ERP, custom dashboards, etc.) that integrate with the PlantPulse platform in Java.
Quick Tour
| Area | Guidance |
|---|---|
| If you are just starting | Read in this order: 1. Getting Started → 2. Domain ID Rules → 3. Response Formats and Error Handling. |
| If you need a specific domain | Jump straight to the relevant service (e.g. Tag, Order) from the table of contents below. |
| If you call REST directly | The full endpoint list maps every URL to its method. |
| If you need workflow examples | See the collected integration examples for end-to-end scenarios. |
Key Concepts
- Entry point:
new APIClient_V5(proto, host, port, user, token, debug)→connect() - 13 services:
client.system(),client.site(),client.customer(),client.employee(),client.product(),client.asset(),client.opc(),client.tag(),client.alarm(),client.order(),client.calendar(),client.path(),client.flow() - Typed DTO returns: Every method returns a typed class (
SiteResponseV5,TagResponseV5, etc.) instead ofJSONObject - Safe defaults on failure:
create/update/get→null,list→ empty list,delete/exists→false,count→0 - Error response extraction:
BaseServiceV5.getErrorCode(env),getErrorMessage(env),getHttpStatus(env)static methods - Domain ID validation:
SITE_,ASSET_,OPC_/API_,TAG_prefixes enforced (server-side validator) - Base path: All calls target endpoints under
/api/v5
Manual Contents
Getting Started and Basic Rules
- Getting Started — Creating a Client and Connecting
- Domain ID Rules ⭐ Please read this first
- Response Formats and Error Handling
Infrastructure and Model Domains
- System Service — Health check
- Site Service — Site (plant) master
- OPC Service — Data collection channels
- Asset Service — Asset hierarchy (Area, Line, Equipment)
- Tag Service — Tag definitions + 10 PATCH types
- Path Service — Asset path lookup
Operational Domains
- Alarm Service — Alarm event lookup
- Calendar Service — Schedules (inspection, downtime, etc.)
- Order Service — Work orders + lifecycle
Master Data
- Customer Service — Customers
- Employee Service — Employees
- Product Service — Products
Automation
- Flow Service — Flow / Flow Node lookup
Appendix
- Full Endpoint List — URL mapping
- Collected Integration Examples — End-to-end workflows
Inquiries: webmaster@kopens.com