From 7d863d3e29d276944788360d81b06402ed884aa5 Mon Sep 17 00:00:00 2001 From: Tanmay Deep Sharma Date: Thu, 15 May 2025 14:56:38 +0700 Subject: [PATCH] update automation rules payload for developer docs --- swagger/definitions/resource/automation_rule.yml | 3 ++- swagger/swagger.json | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/swagger/definitions/resource/automation_rule.yml b/swagger/definitions/resource/automation_rule.yml index 3df291221..6252e845f 100644 --- a/swagger/definitions/resource/automation_rule.yml +++ b/swagger/definitions/resource/automation_rule.yml @@ -1,11 +1,12 @@ type: object properties: payload: + description: Response payload that contains automation rule(s) oneOf: - type: array + description: Array of automation rules (for listing endpoint) items: $ref: '#/components/schemas/automation_rule_item' - description: Array of automation rules (for listing endpoint) - $ref: '#/components/schemas/automation_rule_item' description: Single automation rule (for show/create/update endpoints) diff --git a/swagger/swagger.json b/swagger/swagger.json index 1b42a52f4..20deda254 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -7595,13 +7595,14 @@ "type": "object", "properties": { "payload": { + "description": "Response payload that contains automation rule(s)", "oneOf": [ { "type": "array", + "description": "Array of automation rules (for listing endpoint)", "items": { "$ref": "#/components/schemas/automation_rule_item" - }, - "description": "Array of automation rules (for listing endpoint)" + } }, { "$ref": "#/components/schemas/automation_rule_item"