postGuideStepsByIdStart method
Marks one step of the caller org's journey in progress and returns the refreshed journey.
Marks one step of the caller org's journey in progress and returns the refreshed journey. Dependency-GATED: a step whose prerequisites are unfinished is refused 409 carrying {error, step, blockedBy}, where blockedBy names the exact steps in the way — enough to render the reason without asking again.
Parameters:
- String id (required): ID is the step's id, as it appears in the journey (e.g. "gsuite").
Implementation
Future<OverviewView?> postGuideStepsByIdStart(String id,) async {
final response = await postGuideStepsByIdStartWithHttpInfo(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;
}