Ajax icon

Ajax

Consume Ajax API (v.0.1.2)

Actions242

Overview

This node, named "Ajax," is designed to interact with a specific Ajax API (version indicated in the code). It supports multiple resources and operations, including device management. The particular operation "Update Device Info For Company" under the "Device" resource allows users to update detailed information about a device associated with a company.

Typical use cases include:

  • Updating device metadata such as name, location (room), grouping, and association with hubs within a company's infrastructure.
  • Managing IoT or security devices centrally by synchronizing their details via API calls.
  • Automating device inventory updates in response to organizational changes.

For example, a security administrator could use this node to rename a device, assign it to a different room or group, or link it to a new hub within the company’s system.

Properties

Name Meaning
Company Id Identifier of the company to which the device belongs.
Hub Id Identifier of the hub that the device is connected to or managed under.
Device Id Unique identifier of the device to be updated.
Device Name New or updated name for the device.
Room Id Identifier of the room where the device is located or assigned.
Group Id Identifier of the group the device belongs to; must be an existing group ID or null if groups mode is off.

Output

The node outputs JSON data representing the result of the update operation. This typically includes confirmation of the updated device information or status messages returned from the Ajax API. The exact structure depends on the API response but generally reflects the updated device state.

No binary data output is indicated or expected for this operation.

Dependencies

  • Requires an API key credential for authenticating with the Ajax API.
  • Depends on the external Ajax API service being available and reachable.
  • Uses internal helper classes for HTTP communication, state management, and operation resolution.
  • No additional environment variables are explicitly required beyond the API credentials.

Troubleshooting

  • Authentication errors: Ensure the API key credential is correctly configured and has sufficient permissions.
  • Invalid IDs: Errors may occur if provided companyId, hubId, deviceId, roomId, or groupId do not exist or are malformed. Verify these identifiers before running the node.
  • Group Id restrictions: If groups mode is off, groupId must be either a valid existing group ID or null. Providing invalid values may cause failures.
  • Network issues: Connectivity problems with the Ajax API endpoint will prevent successful execution.
  • API version mismatch: Using incompatible API versions might lead to unexpected errors; confirm the node version matches the API version.

Links and References

Discussion