diff --git a/admin-openapi.json b/admin-openapi.json index 3336b72881..932b8f7425 100644 --- a/admin-openapi.json +++ b/admin-openapi.json @@ -592,7 +592,8 @@ "type": "object", "properties": { "success": { - "type": "boolean" + "type": "boolean", + "description": "Always `true` when the run is queued." }, "runId": { "type": "string", @@ -608,7 +609,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/AutomationWebhookError" } } } @@ -618,7 +619,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/AutomationWebhookError" } } } @@ -628,7 +629,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/AutomationWebhookError" } } } @@ -638,7 +639,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/AutomationWebhookError" + } + } + } + }, + "500": { + "description": "The automation run could not be queued because of an unexpected server error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AutomationWebhookError" } } } @@ -700,6 +711,19 @@ } } }, + "AutomationWebhookError": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "description": "Always `false` for error responses." + }, + "error": { + "type": "string", + "description": "Error message." + } + } + }, "Error": { "type": "object", "properties": {