action intellifi_update_location_rule { label: "Update existing location rule" provider: intellifi method: PUT path: "/locationrules/{id}" encoding: json input: { type: "object" properties: { conditions: { type: "object" description: "Scope of this rule, e.g. moves at or away from a specific location or towards a specific location. The `from_location` is mandatory. The `to_location` is either mandatory, optional or not allowed depending on rule type." properties: { from_location: { type: "string" description: "Unique identifier for resource." } to_location: { type: "string" description: "Unique identifier for resource." } } } enabled: { type: "boolean" description: "Whether this rule should be in effect (`true`) or on hold (`false`)." } id: { type: "string" } label: { type: "string" description: "A name or a label for this resource. This is used in the user interface, may be empty." } parameters: { type: "object" description: "Parameters for this rule; depends on the rule type. Refer to the rule type specification for details." } type: { type: "string" description: "The type of location rule to be applied.\nAllow: items at `conditions.from_location` can only move to `conditions.to_location` and locations allowed in other `allow` rules (destination whitelist).\nDisallow: items at `conditions.from_location` cannot be moved to `conditions.to_location` and locations disallowed in other `disallow` rules (destination blacklist).\nDisappeared: items disappearing at `conditions.from_location` will be moved to `parameters.location` after `parameters.time_s` seconds.\nDebounce: items moves from `conditions.from_location` (and optionally to `conditions.to_location`) will be debounced with a period of `parameters.time_s` seconds, for a maximum of `parameters.max_periods` periods.\n" enum: ["allow", "disallow", "disappeared", "debounce"] } } required: ["id"] additionalProperties: false } output: { type: "object" properties: { resource: { type: "object" properties: { id: { type: "string" description: "Unique identifier for resource." } url: { type: "string" description: "Url to the individual resource." } } } status: { type: "integer" description: "Status code" } } } }