action beezup_get_rules { label: "Gets the list of rules for a given store" provider: beezup method: GET path: "/v2/user/analytics/{storeId}/rules" encoding: json input: { type: "object" properties: { storeId: { type: "string" format: "guid" } } required: ["storeId"] additionalProperties: false } output: { type: "object" required: ["links", "rules"] properties: { links: { type: "object" description: "Links to know if the user can create a rule or run all rules" required: ["create", "history", "run", "self"] properties: { create: { type: "object" } history: { type: "object" } run: { type: "object" } self: { type: "object" } } } rules: { type: "array" description: "Rule list" items: { type: "object" required: ["ruleId", "ruleName", "actionName", "reportFilterId", "position", "enabled", "links"] properties: { actionName: { type: "string" description: "The optimisation action" enum: ["reenable", "disable"] } enabled: { type: "boolean" description: "Is the rule enabled" } lastExecutionStatus: { type: "string" description: "The status of the last execution" enum: ["InProgress", "Succeeded", "Failed", "Unknown"] } lastExecutionUtcDate: { type: "string" format: "date-time" description: "The utc date of the last execution" } links: { type: "object" description: "Links to retrieve/action on other entities" required: ["self"] properties: { delete: { type: "object" } disable: { type: "object" } enable: { type: "object" } movedown: { type: "object" } moveup: { type: "object" } reportFilter: { type: "object" } run: { type: "object" } self: { type: "object" } update: { type: "object" } } } position: { type: "integer" description: "Rule execution position" } reportFilterId: { type: "string" format: "guid" description: "Report filter identifier linked to the rule" } ruleId: { type: "string" format: "guid" description: "The identifier of the rule" } ruleName: { type: "string" description: "The name of the rule" } validityEndUtcDate: { type: "string" format: "date-time" description: "Rule validity end utc date" } validityStartUtcDate: { type: "string" format: "date-time" description: "Rule validity start utc date" } } } } } } }