{ "swagger": "2.0", "info": { "title": "Microsoft Flow", "description": "Swagger describing Start MS FDlow from K2 Workflow", "version": "0.0.0" }, "host": "yourhostnamehere.azure.com:443", "schemes": [ "https" ], "paths": { "/workflows/{WorkflowId}/triggers/manual/paths/invoke": { "post": { "tags": [ "Workflows" ], "summary": "Start Workflow", "description": "Start Workflow", "operationId": "StartWorkflow", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "name": "WorkflowId", "in": "path", "description": "WorkflowId", "required": false, "type": "string", "x-example": "183721a4bb2644a4b0425cd3c8d9c559" }, { "name": "api-version", "in": "query", "description": "api-version", "required": false, "type": "string", "x-example": "2016-06-01" }, { "name": "sp", "in": "query", "description": "sp", "required": false, "type": "string", "x-example": "/triggers/manual/run" }, { "name": "sv", "in": "query", "description": "sv", "required": false, "type": "string", "x-example": "1.0" }, { "name": "sig", "in": "query", "description": "sig", "required": false, "type": "string", "x-example": "rkxNBg5hsP4m6yv4nw_YwrnQ4aUq7vDNUb_gaT9cgyE" }, { "name": "Body", "in": "body", "description": "Body payload to POST to Flow", "required": true, "schema": { "$ref": "#/definitions/Flow" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "string" } } }, "security": [] } } }, "definitions": { "Flow": { "description": "Model for Body payload to POST to Flow, manipulated to look good in K2", "required": [ "serialNumber" ], "properties": { "channelMessage": { "type": "string", "x-example": "Test from Postman" }, "serialNumber": { "type": "string", "x-example": "12_34" }, "originatorEmail": { "type": "string", "x-example": "user@domain.com" } } } }, "securityDefinitions": {}, "security": [], "tags": [ { "name": "Flow", "description": "Operations for Microsoft Flow" } ] }