Skip to main content
Documentation

Fleet API

Actions in the fleet namespace of the Nexigon Hub API.

fleet_SetProperty

POST/api/v1/actions/invoke/fleet_SetProperty

Set a fleet property manually.

Request SetFleetPropertyAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring
  • namerequired

    Name of the property.

    string
  • valuerequired

    Value of the property.

    JsonValueany

Response Empty

No fields.

fleet_GetProperty

POST/api/v1/actions/invoke/fleet_GetProperty

Get a fleet property by name.

Request GetFleetPropertyAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring
  • namerequired

    Name of the property.

    string

Response GetFleetPropertyOutput

  • NotFound

    The property was not found.

    { "result": "NotFound" }

  • Found

    The property was found.

    { "result": "Found", ...<payload fields> } β€” or "content" for non-object payloads

    FleetProperty
    • namerequired

      Name of the property.

      string
    • valuerequired

      Current value.

      JsonValueany
    • kindrequired

      How this property is managed.

      FleetPropertyKind
      • Manual

        Set manually via the API.

        { "kind": "Manual" }

      • Computed

        Computed from device properties via a user-defined strategy.

        { "kind": "Computed" }

      • Builtin

        Computed from device properties via a built-in strategy.

        { "kind": "Builtin" }

    • versionrequired

      Incremental version number, bumped on each update.

      integer (i64)
    • erroroptional

      Error from the last computation attempt, if any.

      string
    • lastUpdated(from last_updated)required

      When the value was last updated.

      Timestampstring

fleet_RemoveProperty

POST/api/v1/actions/invoke/fleet_RemoveProperty

Remove a fleet property.

Handles both manual and computed properties. For computed properties, the associated definition is removed as well.

Request RemoveFleetPropertyAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring
  • namerequired

    Name of the property.

    string

Response RemoveFleetPropertyOutput

  • NotFound

    The property was not found.

    { "result": "NotFound" }

  • Removed

    The property was removed.

    { "result": "Removed" }

fleet_QueryProperties

POST/api/v1/actions/invoke/fleet_QueryProperties

Query all fleet properties of a project.

Request QueryFleetPropertiesAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring

Response QueryFleetPropertiesOutput

  • propertiesrequired

    Properties keyed by name.

    object<string, FleetProperty>
    string
    FleetProperty
    • namerequired

      Name of the property.

      string
    • valuerequired

      Current value.

      JsonValueany
    • kindrequired

      How this property is managed.

      FleetPropertyKind
      • Manual

        Set manually via the API.

        { "kind": "Manual" }

      • Computed

        Computed from device properties via a user-defined strategy.

        { "kind": "Computed" }

      • Builtin

        Computed from device properties via a built-in strategy.

        { "kind": "Builtin" }

    • versionrequired

      Incremental version number, bumped on each update.

      integer (i64)
    • erroroptional

      Error from the last computation attempt, if any.

      string
    • lastUpdated(from last_updated)required

      When the value was last updated.

      Timestampstring

fleet_DefineComputedProperty

POST/api/v1/actions/invoke/fleet_DefineComputedProperty

Define a computed fleet property.

Request DefineComputedFleetPropertyAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring
  • namerequired

    Name of the property.

    string
  • inputProperties(from input_properties)required

    Device property names fed into the strategy's map function.

    array<string>
    string
  • strategyrequired

    Name of the computation strategy.

    string
  • configoptional

    Strategy-specific configuration.

    JsonValueany

Response Empty

No fields.

fleet_QueryComputedPropertyDefinitions

POST/api/v1/actions/invoke/fleet_QueryComputedPropertyDefinitions

Query computed fleet property definitions for a project.

Request QueryComputedFleetPropertyDefinitionsAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring

Response QueryComputedFleetPropertyDefinitionsOutput

  • definitionsrequired

    List of definitions.

    array<ComputedFleetPropertyDefinition>
    ComputedFleetPropertyDefinition
    • namerequired

      Name of the property.

      string
    • inputProperties(from input_properties)required

      Device property names fed into the strategy's map function.

      array<string>
      string
    • strategyrequired

      Name of the computation strategy.

      string
    • configrequired

      Strategy-specific configuration.

      JsonValueany
    • createdAt(from created_at)required

      When the definition was created.

      Timestampstring