patchAutoFlowsByIdWithHttpInfo method
Updates one automation's metadata in place.
Updates one automation's metadata in place. Every field is optional; a field the request omits is left alone. Publishing a version pins which one runs, and is refused unless that version belongs to this flow.
Note: This method returns the HTTP Response.
Parameters:
-
String id (required): ID is the flow to update, from the path.
-
PatchFlowIn patchFlowIn (required):
Implementation
Future<Response> patchAutoFlowsByIdWithHttpInfo(String id, PatchFlowIn patchFlowIn,) async {
// ignore: prefer_const_declarations
final path = r'/v1/auto/flows/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = patchFlowIn;
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,
);
}