P_Bertrand | 2023-08-10 13:58:07 UTC | #1
Hello
Is there a way to create an interaction using POST /api/v2/flows/executions??.
{ "name": "test", "inputData": { "priority": {} }, "flowId": "4af92c05-1052-44dc-xxxxxxxxxxxxxxx" }
With this API I'm triggering a workflow (this works,no errors). But, when adding "transfer to queue" action in Architect, I get "The requested item was not found." error.
I know that I'm missing the interaction type and probably some basic info but I have tried several combinations with no success. Im not sure if this is even possible.
Any guidance/suggestions will be highly appreciated!
Thansk
GET /api/v2/flows/executions/{flowExecutionId} { "id": "kb2smsklu9c0k854h6s60rhbbl3ldju4lklpg0qtk07gjnichl", "name": "test", "flowVersion": { "id": "7.0", "name": "7.0", "commitVersion": "7.0", "configurationVersion": "2.0", "secure": false, "debug": false, "createdBy": { "id": "08b87608-574c-40fa-b573-3e456438482f", "selfUri": "/api/v2/users/08b87608-574c-40fa-b573-3e456438482f" }, "configurationUri": "/api/v2/flows/4af92c05-1052-44dc-aea3-ab67e25695cc/versions/7.0/configuration", "dateCreated": 1691611368719, "dateCheckedIn": 1691611368728, "dateSaved": 1691611367241, "generationId": "WORKFLOWVERSIONPUBLISHED", "inputSchema": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Flow input schema", "description": "Schema defining flow input parameters. Property names map to flow scoped variables marked as a flow input. If you do not supply a property value for an input variable, the variable value will be set to the initial value configured on it in the flow at flow startup.", "type": "object", "properties": {}, "additionalProperties": false }, "outputSchema": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Flow output schema", "description": "Schema defining flow output parameters. Property names map to flow scoped variables marked as a flow output.", "type": "object", "properties": {}, "additionalProperties": false }, "datePublished": "2023-08-09T20:02:48.805Z", "supportedLanguages": [ { "language": "es-us", "isDefault": true } ], "selfUri": "/api/v2/flows/4af92c05-1052-44dc-aea3-ab67e25695cc/versions/7.0" }, "dateLaunched": "2023-08-10T13:42:27.101Z", "status": "FAILED", "dateCompleted": "2023-08-10T13:42:27.385Z", "completionReason": "Failure", "flowErrorInfo": { "message": "The requested item was not found.", "code": "error.workflow.notFound", "messageWithParams": "The requested item '{item}' was not found.", "messageParams": { "item": "WILMA foo" }, "details": [], "errors": [] }, "selfUri": "/api/v2/flows/executions/kb2smsklu9c0k854h6s60rhbbl3ldju4lklpg0qtk07gjnichl" }
Jerome.Saint-Marc | 2023-08-10 14:38:29 UTC | #2
Hello,
No, POST /api/v2/flows/executions does not create a conversation. It just invokes the Architect workflow.
Regards,
P_Bertrand | 2023-08-10 17:39:03 UTC | #3
thank you for the confirmation
system | 2023-09-10 17:39:56 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 21458