Sidebar
Overview
Resources
Metadata
The Metadata resource represents a flexible data structure that holds various types of additional information related to digital objects within the digital customer platform, such as devices, hotspots, or IFTTT rules. Metadata can store a range of data types including user details, files, geographical coordinates, web links, asset information, device inputs, and form details. It is integral for extending the characteristics and functionalities of industrial assets digitalized by the platform, thereby enabling a richer and more customized user experience. Metadata is designed to be adaptable, allowing for the dynamic association with different models and the representation of diverse information within the system.Attributes
These are all attributes that can be read and updated through the API
Name | Description | Permissions |
---|---|---|
id | A unique identifier for each Metadata entry. It is typically an integer or UUID. | READ ONLY |
name | The human-readable name or label for the Metadata entry. | READ AND UPDATE |
val | The actual data or value associated with the Metadata entry. | READ AND UPDATE |
type | The data type of the 'val' attribute, indicating the kind of data stored (e.g., string, integer, JSON, etc.). | READ AND UPDATE |
id_slug | A unique slug identifier corresponding to the specific metadata record. Typically a URL-friendly string derived from the associated entity's name or title. | READ AND UPDATE |
Get Metadata by ID
GEThttps://connect.autonoma.cloud/v1/resources/metadata/[ID]Returns a specific Metadata by ID.
Relations
It is possible to get related objects from Metadatas.
GEThttps://connect.autonoma.cloud/v1/resources/metadata/[ID]/[RELATION]This table shows all available resources that can be queried
Relation | Objecttype | Relationtype | |
---|---|---|---|
devices | Asset | many:many | Show details |
hotspots | Hotspot | many:many | Show details |
ifttt_rules | IftttRule | many:many | Show details |
accounts | Account | many:many | Show details |
deviceinputs | Datastream | many:many | Show details |
Update Metadata
POSThttps://connect.autonoma.cloud/v1/resources/metadata/[ID]Update fields of Metadata by ID. The fields must be sent as x-www-form-urlencoded parameter.
Create Metadata
PUThttps://connect.autonoma.cloud/v1/resources/metadataCreate a new Metadata.
Delete Metadata
DELETEhttps://connect.autonoma.cloud/v1/resources/metadata/[ID]Delete the resource Metadata by ID.
This action can not be reverted!