postGuideStepsByIdReset method
Returns one step of the caller org's journey to todo — clearing a manual mark or a skip — and returns the refreshed journey.
Returns one step of the caller org's journey to todo — clearing a manual mark or a skip — and returns the refreshed journey. Reset is never dependency-gated. Auto-detect runs on the next read, so a step the org has in fact completed elsewhere goes straight back to done.
Parameters:
- String id (required): ID is the step's id, as it appears in the journey (e.g. "gsuite").
Implementation
Future<OverviewView?> postGuideStepsByIdReset(String id,) async {
final response = await postGuideStepsByIdResetWithHttpInfo(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;
}