postGuideStepsByIdDone method
Marks one step of the caller org's journey complete and returns the refreshed journey.
Marks one step of the caller org's journey complete and returns the refreshed journey. Dependency-GATED, exactly as start is: a step whose prerequisites are unfinished is refused 409 carrying {error, step, blockedBy} naming what is in the way.
Parameters:
- String id (required): ID is the step's id, as it appears in the journey (e.g. "gsuite").
Implementation
Future<OverviewView?> postGuideStepsByIdDone(String id,) async {
final response = await postGuideStepsByIdDoneWithHttpInfo(id,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'OverviewView',) as OverviewView;
}
return null;
}