toggleVersion method

Future<bool> toggleVersion(
  1. int versionId
)

Toggles a model version in the vault.

versionId - The ID of the model version to toggle. Requires authentication.

Implementation

Future<bool> toggleVersion(int versionId) async {
  return _retryPolicy.execute(() async {
    final json = await _apiClient.get(
      '/v1/vault/toggle-version',
      queryParams: {'versionId': versionId},
      requiresAuth: true,
    );

    return json['inVault'] as bool;
  });
}