Trait Actions and the Action Lifecycle
A Trait Action is an API request to Yonomi Platform to perform a device-related task. Examples of trait actions include claiming a device, uploading device firmware or updating a device configuration setting. Actions are performed by sending requests (in the form of GraphQL Mutations) to the YP GraphQL API. Actions follow distinct lifecycles that can be completed in three ways:
- A single API call with synchronous resolution – does not have an action lifecycle Example:
- A single API call with asynchronous resolution – requires an action lifecycle management Example:
- A two-step upload process with asynchronous resolution – follows an action lifecycle Example:
By understanding and following the appropriate action lifecycle for each flow, you can effectively manage and track actions within the platform. Let's explore each flow in detail.
Was this section helpful?
On this page
- Trait Actions and the Action Lifecycle
