DriveLock API icon

DriveLock API

Consume DriveLock API

Device Rule → Create Rules

AI-generated

Summary

Create device control rules in a specified DriveLock policy configuration by providing the configuration ID, optionally the configuration version, and a JSON array of rule objects.

Inputs

  • Config ID (required) — The ID of the DriveLock policy configuration to which the device rules will be added.
  • Config Version — The version number of the policy configuration. Use 0 to target the latest version.
  • Rules/Collections (required) — A JSON array representing the device rules or collections to create. This must be valid JSON describing one or more rules.

Output shape

an object containing the API response data indicating success or failure and any created rules details

The response shape depends on the DriveLock API's return structure but typically includes success status and the created rule data. If an error occurs, it will be propagated unless 'Continue on Fail' is enabled in the node settings.

Links

Discussion