deleteDocumentationVersion method

Future<void> deleteDocumentationVersion({
  1. required String documentationVersion,
  2. required String restApiId,
})

Deletes a documentation version.

May throw BadRequestException. May throw ConflictException. May throw NotFoundException. May throw TooManyRequestsException. May throw UnauthorizedException.

Parameter documentationVersion : The version identifier of a to-be-deleted documentation snapshot.

Parameter restApiId : The string identifier of the associated RestApi.

Implementation

Future<void> deleteDocumentationVersion({
  required String documentationVersion,
  required String restApiId,
}) async {
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/restapis/${Uri.encodeComponent(restApiId)}/documentation/versions/${Uri.encodeComponent(documentationVersion)}',
    exceptionFnMap: _exceptionFns,
  );
}