Services
Configuration Store
The Factory+ service that holds the object model and a JSON configuration entry for each application and object.
The Configuration Store is the central place where Factory+ keeps information about things, rather than live data from them. It is often called the ConfigDB.
A Sparkplug birth certificate could carry a device’s name, its location or the settings an Edge Agent needs. Every birth would then grow with each new piece of metadata, and every consumer would have to parse births to find it. Instead, any application can store a JSON document about any object in the Configuration Store. Any other application with permission can read it. Metadata is therefore written once and shared, and no application keeps its own copy.
The store has two jobs. It holds the object model, which records every Factory+ UUID with its rank, classes and owner. It also holds config entries, which are JSON documents keyed by an application UUID and an object UUID. Because other services depend on both, the Configuration Store is one of the core services every Factory+ installation needs.
This page states the service’s requirements in RFC 2119 terms, as described in the service specification. A Configuration Store MUST meet the common requirements in the service specification as well as the ones here.
Data model
Objects
Every object is a UUID registered in the store with a rank, a primary class, an owner and a deleted flag. The object model defines these and the rules for classes, membership and subclasses. The store MUST enforce those rules on every change.
Applications and config entries
An application is a UUID that names one kind of configuration, such as General Information or Edge Agent configuration. The General Information application holds human-readable names. The Edge Agent configuration application holds each Edge Agent’s settings. Despite the name, an application does not have to belong to one piece of software. Many applications are read by several services.
A config entry is a JSON value stored under an (application, object) pair. There is at most one entry for each (application, object) pair. An entry can be any JSON value, but most applications store a JSON object.
The application UUID and the object UUID MUST both be registered objects before an entry can be written. If either is not registered, the store MUST refuse with 404. The application SHOULD be a member of the class Application (d319bd87-f42b-4b66-be4f-f82ff48b93f0).
An application can hold an entry about itself, keyed by its own UUID as the object. That entry is the usual place for settings that apply to the application as a whole.
Registration entries
Each object’s rank, primary class, owner and deleted flag are visible as a config entry of the Object Registration application (cb40bed5-49ad-4443-a7f5-08c75009da8f).
{
"uuid": "3f0c2d2e-5b1a-4c55-9a39-0e7f1c9b6a10",
"rank": 0,
"class": "18773d6d-a70d-443a-b29a-3f1583195290",
"owner": "091e796a-65c0-4080-adff-c3ce01a65b2e",
"deleted": false,
"strict": true
}
The store creates this entry when the object is registered. To change an object’s primary class, rank, owner or deleted flag, a client writes to the entry with PUT or PATCH. The store applies the change to the object model or refuses it. The Registration section of the object model page lists which changes are allowed.
- A change to
uuid, or any other change the model does not allow, gets 409. - An owner change without the right permissions gets 403.
- A DELETE on a Registration entry gets 405, because the entry goes away only when its object is deleted.
Config schemas
A JSON Schema can constrain an application’s entries. The schema for application A is itself a config entry. It is stored under the Application config schema application (dbd8a535-52ba-4f6e-b4f8-9b71aefe09d3) with A as the object. To set the schema for A, a client writes /v2/app/dbd8a535-52ba-4f6e-b4f8-9b71aefe09d3/object/A. That write needs Write config on the Application config schema application.
Config schemas MUST use JSON Schema draft 2020-12. A schema SHOULD set $id to urn:uuid: followed by the application UUID. Each schema SHOULD have a title and a description, and each property SHOULD have a description, because editing tools use these to build forms.
Objects in a schema SHOULD set "additionalProperties": false. Without it the schema accepts any extra property. Extending the schema later without invalidating existing entries then becomes much harder.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:uuid:64a8bfa9-7772-45c4-9d1a-9e6290690957",
"title": "Device general information",
"description": "Human-readable information for display in UIs.",
"type": "object",
"required": ["name"],
"additionalProperties": false,
"properties": {
"name": {
"description": "A human-readable name for this object.",
"type": "string"
}
}
}
When a schema is written, the store MUST check it before accepting it.
- If the schema cannot be compiled, the store MUST refuse it with 422.
- If any existing entry of the application does not validate against the new schema, the store MUST refuse it with 409 and leave the old schema in place. The invalid entries have to be fixed or removed before the schema can be written.
Once a schema is in place, every PUT or PATCH to that application’s entries MUST validate against it. The store MUST refuse an invalid value with 422. Deleting the schema entry removes the constraint.
The schemas on this page constrain configuration. They are separate from the Sparkplug device schemas, which describe the metrics a device publishes.
Applications with server-side rules
Some applications carry rules that a JSON Schema cannot express. The store handles these specially.
| Application | UUID | Rule |
|---|---|---|
| Object Registration | cb40bed5-49ad-4443-a7f5-08c75009da8f | Writes change the object model, as described above. |
| Application config schema | dbd8a535-52ba-4f6e-b4f8-9b71aefe09d3 | Writes compile the schema and check existing entries (422 or 409). |
A Configuration Store MAY also check the rules of other framework applications when their entries are written. It MUST refuse an entry that breaks such a rule with 422. Two framework applications have rules of this kind.
- ISA-95 placement (
f9345c57-14e3-4027-b76d-2b0b67eb8fed). Thenodemust be a node of the ISA-95 vocabulary with an unbroken chain up to its Enterprise. - Engineering unit (
8cd3bb74-c07f-46ed-8422-3d714c945cce). Thecodemust be a UNECE unit code. The object’s UUID must be the version 5 UUID that Factory+ derives from that code. No symbol or alias may already mean another unit.
HTTP API
The current interface is under /v2. All requests MUST be authenticated as described in Authentication. Request and response bodies are JSON.
These rules apply to every /v2 endpoint.
- A path segment that must be a UUID but is not a valid one gets 410.
- A caller without the permission an operation needs gets 403.
- Every permission check names a target. A grant whose target is the Wildcard UUID (
00000000-0000-0000-0000-000000000000) also satisfies it. Authorisation describes how grants on groups and classes expand into targets.
The full request and response details are in the OpenAPI specification at the end of this page.
Objects
| Method and path | Does | Permission (target) |
|---|---|---|
GET /v2/object | Lists every registered object UUID. | List objects (Wildcard) |
GET /v2/object/rank | Lists the rank superclasses, lowest first. | List objects (Wildcard) |
POST /v2/object | Registers an object, or re-registers an existing one. | Create object or Create specific object (the class) |
DELETE /v2/object/{object} | Deletes an object permanently. | Delete object (the object) |
Registering objects
To register an object, a client sends a JSON body to POST /v2/object.
| Field | Required | Meaning |
|---|---|---|
class | Yes | The primary class. The new object’s rank is one below the rank of this class. |
uuid | No | The UUID to register. Omit it to have the store create a random UUID. |
owner | No | The owning principal, or Unowned. Defaults to the caller. |
The body MUST NOT contain rank. The rank always follows from the class, and a body with rank gets 422.
- Creating an object with a store-chosen UUID needs Create object on the class.
- Registering a UUID chosen by the client needs Create specific object on the class.
- Naming an owner other than yourself or Unowned also needs Give to on that owner.
The new object becomes a direct member of its class. A new class also becomes a direct subclass of its rank superclass. The response is 201 with the object’s Registration entry. If the class or the owner is not a registered object, the response is 409. If the store cannot work out the caller’s principal UUID to use as the default owner, the response is 503.
If uuid names an object that already exists, the store applies the body to that object’s Registration entry with deleted set to false. The response is 200 with the entry. A client can register a UUID it needs without first checking whether it exists. Re-registering a soft-deleted object undeletes it.
owner defaults to the caller. A re-registration that leaves out owner therefore asks for ownership of the object. Unless the caller already owns the object, that needs Take from on its current owner. Clients that re-register objects owned by someone else SHOULD name the current owner.
Deleting objects
The normal way to retire an object is a soft delete. A client sets deleted to true in the object’s Registration entry with a PATCH. The object keeps its UUID, its classes and its config. Nothing else breaks, and the UUID is never reused.
DELETE /v2/object/{object} removes the object and every config entry about it, under any application. The store MUST refuse with 409 if any of these hold:
- the object has direct members
- the object has direct subclasses
- the object is an application with entries stored under it
The 409 body is a JSON array of the UUIDs in the way.
The store MUST refuse with 405 to delete an object it depends on to work, such as the Rank 1 class, Application and Special UUIDs classes, the Object Registration and Application config schema applications, and the Wildcard and Unowned objects.
Clients SHOULD prefer a soft delete, because another system may still hold the UUID.
Classes
| Method and path | Does | Permission (target) |
|---|---|---|
GET /v2/class/{class} | Returns {"members": [...], "subclasses": [...]} for the class. | Read members and Read subclasses (the class) |
GET /v2/class/{class}/member | Lists all members, direct or derived. | Read members (the class) |
GET /v2/class/{class}/member/{object} | 204 if the object is a member, 404 if not. | Read members (the class) |
GET /v2/class/{class}/subclass | Lists all subclasses, direct or derived, including the class itself. | Read subclasses (the class) |
GET /v2/class/{class}/subclass/{object} | 204 if the object is a subclass, 404 if not. | Read subclasses (the class) |
GET /v2/class/{class}/direct/member | Lists the direct members only. | Write members (the class) |
GET /v2/class/{class}/direct/member/{object} | 204 if the object is a direct member. | Write members (the class) |
PUT /v2/class/{class}/direct/member/{object} | Adds a direct membership. | Write members (the class) and Write memberships (the object) |
DELETE /v2/class/{class}/direct/member/{object} | Removes a direct membership. | Write members (the class) and Write memberships (the object) |
GET /v2/class/{class}/direct/subclass | Lists the direct subclasses only. | Write subclasses (the class) |
GET /v2/class/{class}/direct/subclass/{object} | 204 if the object is a direct subclass. | Write subclasses (the class) |
PUT /v2/class/{class}/direct/subclass/{object} | Adds a direct subclass relation. | Write subclasses (the class) and Write superclasses (the object) |
DELETE /v2/class/{class}/direct/subclass/{object} | Removes a direct subclass relation. | Write subclasses (the class) and Write superclasses (the object) |
Reading direct relations needs the write permission, because direct relations are editing information. Read-only clients should work only with the derived relations described under Direct and derived relations.
A lookup on a class that is not registered gets 404. A PUT or DELETE on a direct relation gets 204 on success, 404 if either UUID is not registered, and 409 if the change breaks a rule of the object model. These rules give 409.
- A member must be exactly one rank below its class.
- A subclass must have the same rank as its superclass, and an individual cannot be a subclass.
- A direct membership cannot be removed if the object would then no longer be a member, direct or derived, of its primary class.
Adding a membership or subclass relation that already exists succeeds.
When a direct subclass relation is added, the store removes any direct superclass of the object that the new superclass already implies. When the last direct superclass of a class is removed, the class becomes a direct subclass of its rank superclass again.
Config entries
| Method and path | Does | Permission (target) |
|---|---|---|
GET /v2/app/{app}/object | Lists the objects that have an entry for the application. | Read config (the application) |
GET /v2/app/{app}/class/{class} | Lists the members of the class (direct or derived) that have an entry for the application. | Read config (the application) |
GET /v2/app/{app}/object/{object} | Reads an entry. | Read config (the application) |
PUT /v2/app/{app}/object/{object} | Creates or replaces an entry. | Write config (the application) |
PATCH /v2/app/{app}/object/{object} | Updates an entry with a JSON merge-patch. | Read config and Write config (the application) |
DELETE /v2/app/{app}/object/{object} | Deletes an entry. | Write config (the application) |
Permissions on config are granted per application, not per object. A principal that can read an application can read every entry it holds.
If the application or the class is not a registered object, the list endpoints return 404. If it is registered but has no entries, they return an empty list.
A GET returns the stored value with status 200, or 404 if there is no entry. A PUT returns 201 when it creates an entry and 204 when it replaces one. A PUT whose body equals the stored value succeeds with 204 and changes nothing. A DELETE returns 204, or 404 if there was no entry, and leaves the object registered.
ETags and conditional requests
Every entry has a strong ETag. The ETag changes whenever the stored value changes and stays the same when it does not. A GET returns it in the ETag header. Because ETags are opaque strings, clients MUST NOT read meaning into their contents.
- A GET with
If-None-Matchset to the current ETag gets 304 with no body. This lets a client poll cheaply. - A PUT, PATCH or DELETE with
If-Matchproceeds only if the entry’s current ETag matches. Otherwise it gets 412. This stops two clients overwriting each other’s changes. - A PUT with
If-None-Match: *proceeds only if there is no entry yet. Otherwise it gets 412. It creates an entry without overwriting one. - A header that cannot be parsed gets 400.
A PUT response carries no ETag, because the store may normalise the JSON it stores and the stored bytes need not match the request bytes. A client that needs the new ETag reads the entry again.
Merge-patch
PATCH /v2/app/{app}/object/{object} applies the body as an RFC 7396 JSON merge-patch. The patch changes only the properties it names. It removes any property it sets to null.
The request MUST use Content-Type: application/merge-patch+json. The store MUST refuse any other type with 415. The result is validated and stored exactly as a PUT would be, and the response is 204.
Because a merge-patch replaces any value that is not a JSON object whole, the store MUST refuse with 409 to patch an entry that is an array, string, number or boolean. If there is no entry yet, the patch is applied to an empty value. The patch itself therefore becomes the new entry.
For example, to set the location of an object and remove its photo, a client sends:
PATCH /v2/app/64a8bfa9-7772-45c4-9d1a-9e6290690957/object/3f0c2d2e-5b1a-4c55-9a39-0e7f1c9b6a10 HTTP/1.1
Content-Type: application/merge-patch+json
If-Match: "8b5a4e1c-3d2f-4a6b-9c0d-1e2f3a4b5c6d"
{"location": "Bay 4", "photo": null}
The name and contact properties of the existing entry are left as they were.
Change notification
Clients follow changes through the standard notify/v2 WebSocket at /notify/v2. It sends the new content of a resource each time it changes, and the client does not have to poll. A Configuration Store MUST support these subscriptions.
| Method | URL | Follows |
|---|---|---|
| WATCH | v2/app/{app}/object/{object} | One entry. Each update carries the value and its etag header. |
| WATCH | v2/app/{app}/object/ | The list of objects with an entry for the application. |
| SEARCH | v2/app/{app}/object/ | Every entry of the application, one child per object UUID. A filter selects entries by merge-patch matching. |
| SEARCH | v2/app/{app}/etag/ | The ETag of every entry of the application, one child per object UUID. |
| WATCH | v2/class/{class}/member/ | All members of the class. |
| WATCH | v2/class/{class}/subclass/ | All subclasses of the class. |
| WATCH | v2/class/{class}/direct/member/ | The direct members of the class. |
| WATCH | v2/class/{class}/direct/subclass/ | The direct subclasses of the class. |
Each subscription needs the same permission as the matching GET.
The ETag search has no plain HTTP equivalent. With it, a client keeps a whole application in step at a few bytes per entry. The client then fetches only the entries whose ETag has changed.
A Configuration Store MAY also accept the deprecated v1/app/... forms of the three application subscriptions. They behave the same as the v2 forms.
Deprecated v1 interface
The /v1 paths are a deprecated compatibility layer for clients written before /v2. Most of them forward to a /v2 path and behave exactly like it.
| v1 path | Forwards to |
|---|---|
/v1/app | /v2/class/d319bd87-f42b-4b66-be4f-f82ff48b93f0/member |
/v1/app/{app}/config | /v2/app/{app}/object/{app} |
/v1/app/{app}/config-schema | /v2/app/dbd8a535-52ba-4f6e-b4f8-9b71aefe09d3/object/{app} |
/v1/app/{app}/object | /v2/app/{app}/object |
/v1/app/{app}/device, /schema, /app | /v2/app/{app}/class/{class} for the Sparkplug Device, Schema or Application class |
/v1/app/{app}/object/{object}, and the same with device, schema or app in place of object | /v2/app/{app}/object/{object} |
/v1/app/{app}/class/{class} | /v2/app/{app}/class/{class} |
/v1/class | /v2/class/04a1c90d-2295-4cbe-b33a-74eded62cbf1/member |
/v1/class/{class} | /v2/class/{class}/member |
/v1/object | /v2/object |
/v1/object/{object} | /v2/object/{object} |
Two v1 endpoints have no v2 equivalent. GET /v1/app/{app}/search and GET /v1/app/{app}/class/{class}/search search an application’s entries by property value. Each query parameter is a filter or a selector.
- A filter is
path=value. Thepathis a dotted property path. Thevalueis a JSON scalar, orundefinedto match a missing property. - A selector is
@name=path. It adds the value atpathto the results.
Without selectors, the response is an array of matching object UUIDs. With selectors, it is an object mapping each matching UUID to its selected values. A notify/v2 SEARCH with a filter is the supported replacement.
The v1 endpoints for registering applications (POST /v1/app, GET /v1/app/{app}) and for v1 dumps are no longer available. Applications are registered as ordinary objects of the class Application with POST /v2/object.
Bulk loading
A Configuration Store MAY offer a way to load many objects, relations and entries in one request, for example to set up a new installation. The format and the permissions it needs are implementation-defined. Clients that want to work with any Configuration Store MUST use the API on this page.
Well-known UUIDs
Service
af15f175-78a0-4e05-97c0-2a0bb82b9f3bA Configuration Store that implements this page MUST report the service UUID above and version 2.0.0 in its /ping response, as described under Ping.
Classes
d319bd87-f42b-4b66-be4f-f82ff48b93f018773d6d-a70d-443a-b29a-3f158319529083ee28d4-023e-4c2c-ab86-12c24e86372c265d481f-87a7-4f93-8fc6-53fa64dc11bbddb132e4-5cdd-49c8-b9b1-2f35879eab6dThe rank superclasses and the Wildcard and Unowned objects are listed on the object model page.
Applications
cb40bed5-49ad-4443-a7f5-08c75009da8fdbd8a535-52ba-4f6e-b4f8-9b71aefe09d364a8bfa9-7772-45c4-9d1a-9e62906909578e32801b-f35a-4cbf-a5c3-2af64d3debd7Permissions
The Configuration Store checks these permissions. They are members of the Configuration Store permission group.
c43c7157-a50b-4d2a-ac1a-86ff8e8e88c14a339562-cd57-408d-9d1a-6529a383ea4b6c799ccb-d2ad-4715-a2a7-3c8728d6c0bf6b4d73ea-50f1-11f0-9333-132037a152a5ae09e2ba-50ef-11f0-ac03-1f9f5e6548bee3491b9c-50f1-11f0-8e16-e75c8f93227bd4fd61da-50ef-11f0-ad24-335234e4c8a2c2759f6e-50ef-11f0-8730-ef0ba0514a0ee08d89bc-50ef-11f0-8352-83e3d3d35028e6bb9978-50ef-11f0-b3c2-b79b9f64d2ffed11bd2a-50ef-11f0-9f85-df13a1dff9e6fb8e5048-50ef-11f0-91c5-7fd3cb373fbb6957174b-7b08-45ca-ac5c-c03ab6928a6e4eaab346-4d1e-11f0-800e-dfdc061c6a636ad67652-5009-11f0-9404-73b79124c3d595c7cbcb-ce60-49ed-aa81-2fe3eec4559dBecause the class permissions are fine-grained, an installation will usually group them into composite permissions for common roles, such as one that covers all object and class management.
Specification
/v2/objectReturns the UUID of every registered object. Requires List objects (6b4d73ea-50f1-11f0-9333-132037a152a5) on the Wildcard target.
Every registered object UUID.
application/jsonUUIDListThe request did not carry valid credentials.
The caller lacks the permission this operation needs.
/v2/objectCreates a new object in the class given, or re-registers an existing object.
Without uuid, the service creates a new random UUID. This needs Create object (ae09e2ba-50ef-11f0-ac03-1f9f5e6548be) on the class. With uuid, the request needs Create specific object (e3491b9c-50f1-11f0-8e16-e75c8f93227b) on the class.
The new object's rank is one below the rank of its class. It becomes a direct member of the class, which becomes its primary class. A new class also becomes a subclass of its rank superclass.
owner defaults to the principal making the request. If the service cannot resolve the caller to a principal UUID, it responds 503. Naming an owner other than yourself or Unowned (091e796a-65c0-4080-adff-c3ce01a65b2e) needs Give to (4eaab346-4d1e-11f0-800e-dfdc061c6a63) on that owner.
If uuid names an object that already exists, the request is applied as a merge-patch to that object's Registration entry with deleted set to false, and the response is 200. This undeletes a soft-deleted object. Because owner defaults to the caller, re-registering an object without naming its owner asks to take ownership of it, which needs Take from (6ad67652-5009-11f0-9404-73b79124c3d5) on the current owner.
application/jsonObjectCreateclassrequiredUUIDThe primary class of the new object.
uuidUUIDThe UUID to register. Omit to have the service create one.
ownerUUIDThe owning principal, or Unowned. Defaults to the caller.
rankanyNot allowed. The rank always follows from the class.
The object already existed. Its updated Registration entry.
application/jsonRegistrationuuidrequiredUUIDThe object's UUID. It cannot be changed.
rankrequiredinteger0 for an individual, 1 to 3 for a class.
classrequiredUUIDThe primary class.
ownerrequiredUUIDThe owning principal, or Unowned.
deletedrequiredbooleanTrue if the object has been soft-deleted.
stricttrueAlways true. Reserved for mixed-rank classes.
The object was created. Its Registration entry.
application/jsonRegistrationuuidrequiredUUIDThe object's UUID. It cannot be changed.
rankrequiredinteger0 for an individual, 1 to 3 for a class.
classrequiredUUIDThe primary class.
ownerrequiredUUIDThe owning principal, or Unowned.
deletedrequiredbooleanTrue if the object has been soft-deleted.
stricttrueAlways true. Reserved for mixed-rank classes.
The request did not carry valid credentials.
The caller lacks Create object or Create specific object on the class, or Give to on the owner, or (for an existing object) Take from on its current owner.
The class or the owner is not a registered object, or (for an existing object) the change to its registration is not allowed.
The request has no class, or it sets rank.
The service could not resolve the caller to a principal UUID.
/v2/object/rankReturns the rank superclasses in rank order: Individual, Rank 1 class, Rank 2 class, Rank 3 class. Requires List objects on the Wildcard target.
The rank superclass UUIDs, lowest rank first.
application/jsonUUIDListThe request did not carry valid credentials.
The caller lacks the permission this operation needs.
/v2/object/{object}Removes the object, its Registration entry and every config entry stored for it under any application. Requires Delete object (6957174b-7b08-45ca-ac5c-c03ab6928a6e) on the object.
The service refuses with 409 if the object still has direct members, still has direct subclasses, or is an application with config entries stored under it. The body lists the UUIDs that block the delete.
A UUID should normally stay registered for ever, so clients should prefer a soft delete (set deleted to true in the object's Registration entry).
| Name | In | Required | Type | Description |
|---|---|---|---|---|
object | path | Yes | string (uuid) | The object UUID. |
The object was deleted.
The request did not carry valid credentials.
The caller lacks the permission this operation needs.
The object is not registered.
The object is one of the bootstrap objects that the service needs, and it cannot be deleted.
Members, subclasses or config entries depend on this object.
application/jsonUUIDListA path segment that must be a UUID is not a valid UUID.
/v2/class/{class}Returns all members and all subclasses of the class, including derived relations. The subclass list includes the class itself. Requires both Read members (d4fd61da-50ef-11f0-ad24-335234e4c8a2) and Read subclasses (e6bb9978-50ef-11f0-b3c2-b79b9f64d2ff) on the class.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
class | path | Yes | string (uuid) | The class UUID. |
The class's members and subclasses.
application/jsonClassInfomembersrequiredUUIDListsubclassesrequiredUUIDList
The request did not carry valid credentials.
The caller lacks the permission this operation needs.
The class is not registered.
A path segment that must be a UUID is not a valid UUID.
/v2/class/{class}/memberReturns every member of the class, direct or derived. A member of any subclass is a member of the class. Requires Read members on the class.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
class | path | Yes | string (uuid) | The class UUID. |
The member UUIDs.
application/jsonUUIDListThe request did not carry valid credentials.
The caller lacks the permission this operation needs.
The class is not registered.
A path segment that must be a UUID is not a valid UUID.
/v2/class/{class}/member/{object}Requires Read members on the class.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
class | path | Yes | string (uuid) | The class UUID. |
object | path | Yes | string (uuid) | The object UUID. |
The object is a member, direct or derived.
The request did not carry valid credentials.
The caller lacks the permission this operation needs.
The object is not a member, or either UUID is not registered.
A path segment that must be a UUID is not a valid UUID.
/v2/class/{class}/subclassReturns every subclass of the class, direct or derived, including the class itself. Requires Read subclasses on the class.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
class | path | Yes | string (uuid) | The class UUID. |
The subclass UUIDs.
application/jsonUUIDListThe request did not carry valid credentials.
The caller lacks the permission this operation needs.
The class is not registered.
A path segment that must be a UUID is not a valid UUID.
/v2/class/{class}/subclass/{object}Requires Read subclasses on the class.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
class | path | Yes | string (uuid) | The class UUID. |
object | path | Yes | string (uuid) | The object UUID. |
The object is a subclass, direct or derived.
The request did not carry valid credentials.
The caller lacks the permission this operation needs.
The object is not a subclass, or either UUID is not registered.
A path segment that must be a UUID is not a valid UUID.
/v2/class/{class}/direct/memberReturns only the members recorded directly against this class. Because direct relations are editing information, this requires Write members (c2759f6e-50ef-11f0-8730-ef0ba0514a0e) on the class.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
class | path | Yes | string (uuid) | The class UUID. |
The direct member UUIDs.
application/jsonUUIDListThe request did not carry valid credentials.
The caller lacks the permission this operation needs.
The class is not registered.
A path segment that must be a UUID is not a valid UUID.
/v2/class/{class}/direct/member/{object}Requires Write members on the class.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
class | path | Yes | string (uuid) | The class UUID. |
object | path | Yes | string (uuid) | The object UUID. |
The object is a direct member.
The request did not carry valid credentials.
The caller lacks the permission this operation needs.
The object is not a direct member, or either UUID is not registered.
A path segment that must be a UUID is not a valid UUID.
/v2/class/{class}/direct/member/{object}Makes the object a direct member of the class. The class must be exactly one rank above the object. Requires Write members on the class and Write memberships (e08d89bc-50ef-11f0-8352-83e3d3d35028) on the object. Adding a membership that already exists succeeds.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
class | path | Yes | string (uuid) | The class UUID. |
object | path | Yes | string (uuid) | The object UUID. |
The object is now a direct member.
The request did not carry valid credentials.
The caller lacks the permission this operation needs.
The class or the object is not registered.
The class is not one rank above the object.
A path segment that must be a UUID is not a valid UUID.
/v2/class/{class}/direct/member/{object}Removes the direct membership. The service refuses if this would leave the object outside its primary class. Requires Write members on the class and Write memberships on the object.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
class | path | Yes | string (uuid) | The class UUID. |
object | path | Yes | string (uuid) | The object UUID. |
The direct membership is gone.
The request did not carry valid credentials.
The caller lacks the permission this operation needs.
The class or the object is not registered.
The object would no longer be a member of its primary class.
A path segment that must be a UUID is not a valid UUID.
/v2/class/{class}/direct/subclassRequires Write subclasses (ed11bd2a-50ef-11f0-9f85-df13a1dff9e6) on the class.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
class | path | Yes | string (uuid) | The class UUID. |
The direct subclass UUIDs.
application/jsonUUIDListThe request did not carry valid credentials.
The caller lacks the permission this operation needs.
The class is not registered.
A path segment that must be a UUID is not a valid UUID.
/v2/class/{class}/direct/subclass/{object}Requires Write subclasses on the class.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
class | path | Yes | string (uuid) | The class UUID. |
object | path | Yes | string (uuid) | The object UUID. |
The object is a direct subclass.
The request did not carry valid credentials.
The caller lacks the permission this operation needs.
The object is not a direct subclass, or either UUID is not registered.
A path segment that must be a UUID is not a valid UUID.
/v2/class/{class}/direct/subclass/{object}Makes the object a direct subclass of the class. Both must have the same rank, and an individual cannot be a subclass. Any direct superclass of the object that the class already implies is removed as a direct relation, because it is still derived through the class. Requires Write subclasses on the class and Write superclasses (fb8e5048-50ef-11f0-91c5-7fd3cb373fbb) on the object.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
class | path | Yes | string (uuid) | The class UUID. |
object | path | Yes | string (uuid) | The object UUID. |
The object is now a direct subclass.
The request did not carry valid credentials.
The caller lacks the permission this operation needs.
The class or the object is not registered.
The ranks differ, or the object is an individual.
A path segment that must be a UUID is not a valid UUID.
/v2/class/{class}/direct/subclass/{object}Removes the direct subclass relation. If the object is left with no direct superclass, it becomes a direct subclass of its rank superclass again. Requires Write subclasses on the class and Write superclasses on the object.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
class | path | Yes | string (uuid) | The class UUID. |
object | path | Yes | string (uuid) | The object UUID. |
The direct subclass relation is gone.
The request did not carry valid credentials.
The caller lacks the permission this operation needs.
The class or the object is not registered, or the object is an individual.
A path segment that must be a UUID is not a valid UUID.
/v2/app/{app}/objectReturns the UUID of every object that has a config entry for this application. Requires Read config (4a339562-cd57-408d-9d1a-6529a383ea4b) on the application.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
The object UUIDs.
application/jsonUUIDListThe request did not carry valid credentials.
The caller lacks the permission this operation needs.
The application is not a registered object.
A path segment that must be a UUID is not a valid UUID.
/v2/app/{app}/class/{class}Returns the UUID of every member of the class (direct or derived) that has a config entry for this application. Requires Read config on the application.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
class | path | Yes | string (uuid) | The class UUID. |
The object UUIDs.
application/jsonUUIDListThe request did not carry valid credentials.
The caller lacks the permission this operation needs.
The application or the class is not a registered object.
A path segment that must be a UUID is not a valid UUID.
/v2/app/{app}/object/{object}Returns the stored JSON value with a strong ETag. Send If-None-Match with a previous ETag to receive 304 when the entry has not changed. Requires Read config on the application.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
object | path | Yes | string (uuid) | The object UUID. |
If-None-Match | header | No | string |
|
The config entry.
| Header | Required | Type | Description |
|---|---|---|---|
ETag | No | string | A strong ETag for the entry, as a quoted opaque string. It changes whenever the stored value changes. |
application/jsonConfigValueThe entry matches the ETag given in If-None-Match.
| Header | Required | Type | Description |
|---|---|---|---|
ETag | No | string | A strong ETag for the entry, as a quoted opaque string. It changes whenever the stored value changes. |
An If-Match or If-None-Match header could not be parsed.
The request did not carry valid credentials.
The caller lacks the permission this operation needs.
There is no entry for this application and object.
A path segment that must be a UUID is not a valid UUID.
/v2/app/{app}/object/{object}Stores the request body (any JSON value) as the entry. Both the application and the object must already be registered objects. If the application has a config schema, the body must validate against it. Some applications have extra server-side rules (see the Configuration Store page).
If-Match and If-None-Match are honoured, so If-None-Match: * creates an entry only if none exists, and If-Match: "<etag>" replaces it only if it has not changed. The response carries no ETag because the stored form may differ byte for byte from the request. A PUT that does not change the stored value succeeds and leaves the ETag unchanged.
Requires Write config (6c799ccb-d2ad-4715-a2a7-3c8728d6c0bf) on the application.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
object | path | Yes | string (uuid) | The object UUID. |
If-Match | header | No | string |
|
If-None-Match | header | No | string |
|
application/jsonConfigValueA new entry was created.
The entry was replaced, or was already equal to the body.
An If-Match or If-None-Match header could not be parsed.
The request did not carry valid credentials.
The caller lacks the permission this operation needs.
The application or the object is not a registered object.
The change conflicts with existing data. For the Registration application, the change to the registration is not allowed. For the Application config schema application, existing entries do not validate against the new schema.
A path segment that must be a UUID is not a valid UUID.
An If-Match or If-None-Match condition was not met.
The value does not validate against the application's config schema, or an application with server-side rules refused it.
/v2/app/{app}/object/{object}Removes the entry. The object stays registered. If-Match and If-None-Match are honoured. Registration entries cannot be deleted this way (405). Requires Write config on the application.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
object | path | Yes | string (uuid) | The object UUID. |
If-Match | header | No | string |
|
If-None-Match | header | No | string |
|
The entry was deleted.
An If-Match or If-None-Match header could not be parsed.
The request did not carry valid credentials.
The caller lacks the permission this operation needs.
There is no entry for this application and object.
Entries of this application cannot be deleted (the Registration application).
A path segment that must be a UUID is not a valid UUID.
An If-Match or If-None-Match condition was not met.
/v2/app/{app}/object/{object}Applies the body as an RFC 7396 JSON merge-patch to the stored entry, then validates and stores the result as a PUT would. The request must use Content-Type: application/merge-patch+json. If there is no entry yet, the patch is applied to an empty value, so the patch itself becomes the new entry. The stored entry must be a JSON object, because a merge-patch replaces any other value whole.
Requires both Read config and Write config on the application.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
object | path | Yes | string (uuid) | The object UUID. |
If-Match | header | No | string |
|
If-None-Match | header | No | string |
|
application/merge-patch+jsonConfigValueThe entry was created or updated, or was already equal to the result.
An If-Match or If-None-Match header could not be parsed.
The request did not carry valid credentials.
The caller lacks the permission this operation needs.
The application or the object is not a registered object.
The stored entry is not a JSON object, or an application with server-side rules refused the change.
A path segment that must be a UUID is not a valid UUID.
An If-Match or If-None-Match condition was not met.
The Content-Type is not application/merge-patch+json.
The value does not validate against the application's config schema, or an application with server-side rules refused it.
/v2/appDeprecatedDeprecated alias for GET /v2/class/d319bd87-f42b-4b66-be4f-f82ff48b93f0/member (the members of the Application class).
Application UUIDs.
application/jsonUUIDList/v2/classDeprecatedDeprecated alias for GET /v2/class/04a1c90d-2295-4cbe-b33a-74eded62cbf1/member (the members of Rank 1 class).
Class UUIDs.
application/jsonUUIDList/v1/appDeprecatedForwards to GET /v2/class/d319bd87-f42b-4b66-be4f-f82ff48b93f0/member.
As the v2 endpoint.
/v1/app/{app}/configDeprecatedForwards to /v2/app/{app}/object/{app}, the entry the application holds about itself.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
As the v2 endpoint.
A path segment that must be a UUID is not a valid UUID.
/v1/app/{app}/configDeprecatedForwards to /v2/app/{app}/object/{app}.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
As the v2 endpoint.
A path segment that must be a UUID is not a valid UUID.
/v1/app/{app}/config-schemaDeprecatedForwards to /v2/app/dbd8a535-52ba-4f6e-b4f8-9b71aefe09d3/object/{app}.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
As the v2 endpoint.
A path segment that must be a UUID is not a valid UUID.
/v1/app/{app}/config-schemaDeprecatedForwards to /v2/app/dbd8a535-52ba-4f6e-b4f8-9b71aefe09d3/object/{app}, so it needs Write config on the Application config schema application.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
As the v2 endpoint.
A path segment that must be a UUID is not a valid UUID.
/v1/app/{app}/objectDeprecatedForwards to /v2/app/{app}/object.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
As the v2 endpoint.
A path segment that must be a UUID is not a valid UUID.
/v1/app/{app}/deviceDeprecatedForwards to /v2/app/{app}/class/18773d6d-a70d-443a-b29a-3f1583195290 (the Sparkplug Device class).
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
As the v2 endpoint.
A path segment that must be a UUID is not a valid UUID.
/v1/app/{app}/schemaDeprecatedForwards to /v2/app/{app}/class/83ee28d4-023e-4c2c-ab86-12c24e86372c (the Schema class).
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
As the v2 endpoint.
A path segment that must be a UUID is not a valid UUID.
/v1/app/{app}/appDeprecatedForwards to /v2/app/{app}/class/d319bd87-f42b-4b66-be4f-f82ff48b93f0 (the Application class).
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
As the v2 endpoint.
A path segment that must be a UUID is not a valid UUID.
The paths /v1/app/{app}/device/{object}, /v1/app/{app}/schema/{object} and /v1/app/{app}/app/{object} are identical aliases of this path.
/v1/app/{app}/object/{object}DeprecatedForwards to /v2/app/{app}/object/{object}.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
object | path | Yes | string (uuid) | The object UUID. |
As the v2 endpoint.
A path segment that must be a UUID is not a valid UUID.
/v1/app/{app}/object/{object}DeprecatedForwards to /v2/app/{app}/object/{object}.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
object | path | Yes | string (uuid) | The object UUID. |
As the v2 endpoint.
A path segment that must be a UUID is not a valid UUID.
/v1/app/{app}/object/{object}DeprecatedForwards to /v2/app/{app}/object/{object}.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
object | path | Yes | string (uuid) | The object UUID. |
As the v2 endpoint.
A path segment that must be a UUID is not a valid UUID.
/v1/app/{app}/class/{class}DeprecatedForwards to /v2/app/{app}/class/{class}.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
class | path | Yes | string (uuid) | The class UUID. |
As the v2 endpoint.
A path segment that must be a UUID is not a valid UUID.
/v1/app/{app}/searchDeprecatedSearches the entries of one application. Each query parameter is either a filter or a selector:
* A filter is path=value, where path is a dotted property path (a.b.c) and value is a JSON scalar (null, true, false, a number or a double-quoted string). An entry matches if the property at path equals value. The value undefined matches entries where the property is absent. * A selector is @name=path. It adds the value found at path to the results under name. The name uuid is not allowed.
With no selectors, the response is an array of the matching object UUIDs. With selectors, it is an object mapping each matching object UUID to an object of the selected values (absent values are left out). Requires Read config on the application.
A notify/v2 SEARCH v2/app/{app}/object/ with a filter is the supported replacement.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
query | query | No | map of string | Filters ( |
The matching objects.
application/jsonUUIDList | map of objectA query parameter is not a valid filter or selector.
The caller lacks the permission this operation needs.
A path segment that must be a UUID is not a valid UUID.
/v1/app/{app}/class/{class}/searchDeprecatedAs /v1/app/{app}/search, restricted to members (direct or derived) of the class.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
app | path | Yes | string (uuid) | The application UUID. |
class | path | Yes | string (uuid) | The class UUID. |
As /v1/app/{app}/search.
A query parameter is not a valid filter or selector.
The caller lacks the permission this operation needs.
A path segment that must be a UUID is not a valid UUID.
/v1/classDeprecatedForwards to GET /v2/class.
As the v2 endpoint.
/v1/class/{class}DeprecatedForwards to GET /v2/class/{class}/member.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
class | path | Yes | string (uuid) | The class UUID. |
As the v2 endpoint.
A path segment that must be a UUID is not a valid UUID.
/v1/objectDeprecatedForwards to GET /v2/object.
As the v2 endpoint.
/v1/objectDeprecatedForwards to POST /v2/object.
As the v2 endpoint.
/v1/object/{object}DeprecatedForwards to DELETE /v2/object/{object}.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
object | path | Yes | string (uuid) | The object UUID. |
As the v2 endpoint.
A path segment that must be a UUID is not a valid UUID.