installMarketplaceWorkflow method

Future<Object?> installMarketplaceWorkflow({
  1. required Object listingViewId,
  2. Map<String, Object?>? query,
  3. Object? body,
  4. Map<String, String>? headers,
})

Beta: POST /{version}/code/marketplace/listings/{ListingViewId}/install-workflow

Fill a workflow listing's references and save a new workflow's draft: nothing runs and nothing is published. Body: references (a value for every key the listing declares), name?, executionIdentityId?. Answers WorkflowResponse. A connector listing is CM-ERRORS-MARKETPLACE-035; a reference missing or undeclared is CM-ERRORS-MARKETPLACE-036, one error per key.

Implementation

Future<Object?> installMarketplaceWorkflow(
    {required Object listingViewId,
    Map<String, Object?>? query,
    Object? body,
    Map<String, String>? headers}) {
  return transport.send(
    route:
        '/{version}/code/marketplace/listings/{ListingViewId}/install-workflow',
    method: 'POST',
    query: query,
    body: body,
    headers: headers,
    pathParams: <String, Object?>{'ListingViewId': listingViewId},
  );
}