patchFlowWorkflowsByWorkflowWithHttpInfo method

Future<Response> patchFlowWorkflowsByWorkflowWithHttpInfo(
  1. String workflow,
  2. FlowUpdate flowUpdate
)

Patches one of the caller's workflows: name, description, graph, or the locked flag — only the stated fields move.

Patches one of the caller's workflows: name, description, graph, or the locked flag — only the stated fields move. Ownership is verified before the patch reaches the product.

Note: This method returns the HTTP Response.

Parameters:

  • String workflow (required): Workflow is the workflow's UUID, taken from the path.

  • FlowUpdate flowUpdate (required):

Implementation

Future<Response> patchFlowWorkflowsByWorkflowWithHttpInfo(String workflow, FlowUpdate flowUpdate,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/flow/workflows/{workflow}'
    .replaceAll('{workflow}', workflow);

  // ignore: prefer_final_locals
  Object? postBody = flowUpdate;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'PATCH',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}