transferCredential method

Future<Response> transferCredential(
  1. String id,
  2. String destinationProjectId
)

Transfer a credential to another project

Implementation

Future<Response> transferCredential(String id, String destinationProjectId) async {
  try {
    final response = await _dio.put(
      '/credentials/$id/transfer',
      data: {
        'destinationProjectId': destinationProjectId,
      },
    );
    return response;
  } on DioException catch (e) {
    throw Exception('Failed to transfer credential: ${e.message}');
  }
}