updateProcessWithHttpInfo method
Future<Response>
updateProcessWithHttpInfo(
- String account,
- String process, {
- UpdateProcessRequest? updateProcessRequest,
Update a process
Updates the specified process resource by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Note: This method returns the HTTP Response
.
Parameters:
-
String account (required): The identifier (UUID) or slug of your Keygen account.
-
String process (required): The identifier (UUID) of the process to be updated.
-
UpdateProcessRequest updateProcessRequest:
Implementation
Future<Response> updateProcessWithHttpInfo(String account, String process, { UpdateProcessRequest? updateProcessRequest, }) async {
// ignore: prefer_const_declarations
final path = r'/accounts/{account}/processes/{process}'
.replaceAll('{account}', account)
.replaceAll('{process}', process);
// ignore: prefer_final_locals
Object? postBody = updateProcessRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/vnd.api+json'];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}