DriveLock API icon

DriveLock API

Consume DriveLock API

Drive Rule → Update Collections

AI-generated

Summary

Update drive collections within a specified policy configuration by providing the configuration ID, optional version, and the new collections data in JSON format.

Inputs

  • Config ID (required) — The unique identifier of the DriveLock policy configuration to update.
  • Config Version — The version number of the DriveLock policy configuration to update (0 for latest version).
  • Rules/Collections (required) — A JSON array containing the updated collections data to apply to the specified DriveLock configuration.

Output shape

an object containing the API response data with success status and other returned fields

The API response is returned as a JSON object. The operation does not list pagination because it performs an update request. Errors are thrown on failure.

Examples

Example 1: Update drive collections for a given configuration

Update the drive collections for a specific DriveLock policy configuration by specifying the config ID, an optional config version, and the collections to be updated in JSON format.

Links

Discussion